├── NekoDrive ├── Neko.ico ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ └── Settings.settings └── Controls │ ├── IPAddressControlDesigner.cs │ └── IPAddressControl.designer.cs ├── jrpcgen ├── jrpcgen_TemporaryKey.pfx ├── src │ └── org │ │ └── acplt │ │ └── oncrpc │ │ └── apps │ │ └── jrpcgen │ │ ├── runcsflex.cmd │ │ ├── runccup.cmd │ │ ├── cup_runtime │ │ └── Scanner.cs │ │ ├── JrpcgenParserException.cs │ │ ├── JrpcgenParamInfo.cs │ │ ├── JrpcgenSymbols.cs │ │ └── JrpcgenStruct.cs ├── app.config └── Properties │ ├── AssemblyInfo.cs │ └── app.manifest ├── NFSLibrary ├── app.config ├── Protocols │ ├── V2 │ │ └── RPC │ │ │ ├── NFSCookie.cs │ │ │ ├── Mount │ │ │ ├── NFSv2MountProtocol.cs │ │ │ ├── MountStatus.cs │ │ │ └── MountList.cs │ │ │ ├── LinkArguments.cs │ │ │ ├── RenameArguments.cs │ │ │ ├── ItemOperationArguments.cs │ │ │ ├── FileArguments.cs │ │ │ ├── SymlinkArguments.cs │ │ │ ├── NFSv2Protocol.cs │ │ │ ├── FSStatStatus.cs │ │ │ ├── LinkStatus.cs │ │ │ ├── FileStatus.cs │ │ │ ├── ItemArguments.cs │ │ │ ├── Info.cs │ │ │ ├── ReadArguments.cs │ │ │ ├── Entry.cs │ │ │ ├── WriteArguments.cs │ │ │ └── ReadStatus.cs │ ├── V3 │ │ └── RPC │ │ │ ├── NFSCookie.cs │ │ │ ├── Mount │ │ │ ├── NFSv3MountProtocol.cs │ │ │ ├── MountList.cs │ │ │ └── MountBody.cs │ │ │ ├── GetAttributeStatus.cs │ │ │ ├── FSInfoArguments.cs │ │ │ ├── ReadLinkArguments.cs │ │ │ ├── FSStatisticsArguments.cs │ │ │ ├── PathConfigurationArguments.cs │ │ │ ├── GetAttributeArguments.cs │ │ │ ├── SpecInformation.cs │ │ │ ├── WritingData.cs │ │ │ ├── RenameArguments.cs │ │ │ ├── MakeFolderArguments.cs │ │ │ ├── PreOperationAttributes.cs │ │ │ ├── PostOperationAttributes.cs │ │ │ ├── AccessArguments.cs │ │ │ ├── ItemOperationArguments.cs │ │ │ ├── LinkArguments.cs │ │ │ ├── WritingAttributes.cs │ │ │ ├── RemoveStatus.cs │ │ │ ├── SetAttributeStatus.cs │ │ │ ├── ReadArguments.cs │ │ │ ├── CommitArguments.cs │ │ │ ├── AccessStatus.cs │ │ │ ├── CommitStatus.cs │ │ │ ├── ReadLinkStatus.cs │ │ │ ├── ResultObject.cs │ │ │ ├── Entry.cs │ │ │ ├── ReadFolderArguments.cs │ │ │ ├── RenameStatus.cs │ │ │ ├── SymlinkArguments.cs │ │ │ ├── NFSv3Protocol.cs │ │ │ ├── SymlinkStatus.cs │ │ │ ├── MakeFileStatus.cs │ │ │ ├── MakeNodeStatus.cs │ │ │ ├── SetAttributeArguments.cs │ │ │ ├── LinkStatus.cs │ │ │ ├── WriteArguments.cs │ │ │ ├── ReadStatus.cs │ │ │ ├── ItemOperationStatus.cs │ │ │ ├── ExtendedReadFolderArguments.cs │ │ │ └── WriteStatus.cs │ └── Commons │ │ ├── Name.cs │ │ ├── INFS.cs │ │ ├── NFSTimeValue.cs │ │ ├── NFSHandle.cs │ │ ├── NFSPermission.cs │ │ ├── Groups.cs │ │ └── Exports.cs ├── Properties │ └── AssemblyInfo.cs └── RPC │ └── org │ └── acplt │ └── oncrpc │ ├── OncRpcAuthConstants.cs │ ├── OncRpcTimeoutException.cs │ ├── OncRpcReplyStatus.cs │ ├── OncRpcBroadcastListener.cs │ ├── OncRpcBroadcastAdapter.cs │ ├── OncRpcRejectStatus.cs │ ├── server │ └── OncRpcServerTransportRegistrationInfo.cs │ └── OncRpcMessageType.cs ├── jportmap ├── app.config ├── Properties │ └── AssemblyInfo.cs └── src │ └── org │ └── acplt │ └── oncrpc │ └── apps │ └── jportmap │ └── csportmap.cs ├── remoteteanet ├── app.config ├── Properties │ └── AssemblyInfo.cs └── src │ └── org │ └── acplt │ └── oncrpc │ ├── OncRpcAuthConstants.cs │ ├── OncRpcTimeoutException.cs │ ├── OncRpcReplyStatus.cs │ ├── OncRpcBroadcastListener.cs │ ├── OncRpcBroadcastAdapter.cs │ ├── OncRpcRejectStatus.cs │ ├── server │ └── OncRpcServerTransportRegistrationInfo.cs │ └── OncRpcMessageType.cs ├── RPC_NFS ├── nfs_rpc_code.txt ├── NFSv2MountProtocol └── NFSv3MountProtocol ├── NFSClient ├── Program.cs ├── NewFolder.cs ├── Properties │ ├── Settings.settings │ └── AssemblyInfo.cs ├── app.config ├── IPAddressControlDesigner.cs └── IPAddressControl.designer.cs └── DokanNet └── Properties └── AssemblyInfo.cs /NekoDrive/Neko.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nekoni/nekodrive/HEAD/NekoDrive/Neko.ico -------------------------------------------------------------------------------- /jrpcgen/jrpcgen_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nekoni/nekodrive/HEAD/jrpcgen/jrpcgen_TemporaryKey.pfx -------------------------------------------------------------------------------- /jrpcgen/src/org/acplt/oncrpc/apps/jrpcgen/runcsflex.cmd: -------------------------------------------------------------------------------- 1 | \tools\rpc.net\csflex-1.4\csflex --csharp -v JrpcgenScanner.flex 2 | -------------------------------------------------------------------------------- /NFSLibrary/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /jportmap/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /remoteteanet/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /jrpcgen/src/org/acplt/oncrpc/apps/jrpcgen/runccup.cmd: -------------------------------------------------------------------------------- 1 | \tools\rpc.net\cup\C#CUP -namespace org.acplt.oncrpc.apps.jrpcgen -parser JrpcgenParser -symbols JrpcgenSymbols < JrpcgenParser.cup 2 | -------------------------------------------------------------------------------- /RPC_NFS/nfs_rpc_code.txt: -------------------------------------------------------------------------------- 1 | NFS RPC Files readme 2 | 3 | Those files are the implementation ot NFS 2/3 Protocol 4 | in RPC Language. In order to create the rpc methos 5 | you need to compile all those files with ONCRPC. -------------------------------------------------------------------------------- /NFSClient/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace NFSClient 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [STAThread] 13 | static void Main() 14 | { 15 | Application.EnableVisualStyles(); 16 | Application.SetCompatibleTextRenderingDefault(false); 17 | Application.Run(new MainForm()); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /NekoDrive/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace NekoDrive 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [STAThread] 13 | static void Main() 14 | { 15 | Application.EnableVisualStyles(); 16 | Application.SetCompatibleTextRenderingDefault(false); 17 | Application.Run(new MainForm()); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /NFSClient/NewFolder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace NFSClient 10 | { 11 | public partial class NewFolder : Form 12 | { 13 | public string NewFolderName; 14 | public int userPSelectedIndex; 15 | public int groupPSelectedIndex; 16 | public int otherPSelectedIndex; 17 | 18 | public NewFolder() 19 | { 20 | InitializeComponent(); 21 | } 22 | 23 | private void btnOk_Click(object sender, EventArgs e) 24 | { 25 | NewFolderName = tbNewFolder.Text; 26 | userPSelectedIndex = comboBox1.SelectedIndex; 27 | groupPSelectedIndex = comboBox2.SelectedIndex; 28 | otherPSelectedIndex = comboBox3.SelectedIndex; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/NFSCookie.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V2.RPC 9 | { 10 | public class NFSCookie : XdrAble 11 | { 12 | private int _value; 13 | 14 | public NFSCookie() 15 | { } 16 | 17 | public NFSCookie(int value) 18 | { this._value = value; } 19 | 20 | public NFSCookie(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { xdr.xdrEncodeInt(this._value); } 25 | 26 | public void xdrDecode(XdrDecodingStream xdr) 27 | { this._value = xdr.xdrDecodeInt(); } 28 | 29 | public int Value 30 | { 31 | get 32 | { return this._value; } 33 | } 34 | } 35 | // End of nfscookie.cs 36 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/NFSCookie.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC 9 | { 10 | public class NFSCookie : XdrAble 11 | { 12 | private long _value; 13 | 14 | public NFSCookie() 15 | { } 16 | 17 | public NFSCookie(long value) 18 | { this._value = value; } 19 | 20 | public NFSCookie(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { xdr.xdrEncodeLong(this._value); } 25 | 26 | public void xdrDecode(XdrDecodingStream xdr) 27 | { this._value = xdr.xdrDecodeLong(); } 28 | 29 | public long Value 30 | { 31 | get 32 | { return this._value; } 33 | } 34 | } 35 | // End of cookie3.cs 36 | } 37 | 38 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/Mount/NFSv2MountProtocol.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | /** 7 | * A collection of constants used by the "NFSv2MountProtocol" ONC/RPC program. 8 | */ 9 | namespace NFSLibrary.Protocols.V2.RPC.Mount 10 | { 11 | public class NFSv2MountProtocol 12 | { 13 | public const int MOUNTPROG = 100005; 14 | public const int MOUNTVERS = 1; 15 | 16 | public const int MOUNTPROC_NULL = 0; 17 | public const int MOUNTPROC_MNT = 1; 18 | public const int MOUNTPROC_DUMP = 2; 19 | public const int MOUNTPROC_UMNT = 3; 20 | public const int MOUNTPROC_UMNTALL = 4; 21 | public const int MOUNTPROC_EXPORT = 5; 22 | 23 | public const int MNTPATHLEN = 1024; 24 | public const int MNTNAMLEN = 255; 25 | public const int FHSIZE = 32; 26 | } 27 | // End of NFSv2MountProtocol.cs 28 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/Mount/NFSv3MountProtocol.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | /** 7 | * A collection of constants used by the "NFSv3MountProtocol" ONC/RPC program. 8 | */ 9 | namespace NFSLibrary.Protocols.V3.RPC.Mount 10 | { 11 | public class NFSv3MountProtocol 12 | { 13 | public const int MOUNTPROG = 100005; 14 | public const int MOUNTVERS = 3; 15 | 16 | public const int MOUNTPROC3_NULL = 0; 17 | public const int MOUNTPROC3_MNT = 1; 18 | public const int MOUNTPROC3_DUMP = 2; 19 | public const int MOUNTPROC3_UMNT = 3; 20 | public const int MOUNTPROC3_UMNTALL = 4; 21 | public const int MOUNTPROC3_EXPORT = 5; 22 | 23 | public const int MNTPATHLEN = 1024; 24 | public const int MNTNAMLEN = 255; 25 | public const int FHSIZE = 64; 26 | } 27 | // End of NFSv3MountProtocol.cs 28 | } -------------------------------------------------------------------------------- /jrpcgen/src/org/acplt/oncrpc/apps/jrpcgen/cup_runtime/Scanner.cs: -------------------------------------------------------------------------------- 1 | namespace TUVienna.CS_CUP.Runtime 2 | { 3 | 4 | /** 5 | * Defines the Scanner interface, which CUP uses in the default 6 | * implementation of lr_parser.scan(). Integration 7 | * of scanners implementing Scanner is facilitated. 8 | * 9 | * @version last updated 23-Jul-1999 10 | * @author David MacMahon 11 | * translated to C# 08.09.2003 by Samuel Imriska 12 | */ 13 | 14 | /* ************************************************* 15 | Interface Scanner 16 | 17 | Declares the next_token() method that should be 18 | implemented by scanners. This method is typically 19 | called by lr_parser.scan(). End-of-file can be 20 | indicated either by returning 21 | new Symbol(lr_parser.EOF_sym()) or 22 | null. 23 | ***************************************************/ 24 | public interface Scanner 25 | { 26 | /** Return the next token, or null on end-of-file. */ 27 | Symbol next_token(); 28 | } 29 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/GetAttributeStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class GetAttributeAccessOK : XdrAble 12 | { 13 | private FileAttributes _obj_attributes; 14 | 15 | public GetAttributeAccessOK() 16 | { } 17 | 18 | public GetAttributeAccessOK(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._obj_attributes.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { this._obj_attributes = new FileAttributes(xdr); } 26 | 27 | public FileAttributes Attributes 28 | { 29 | get 30 | { return this._obj_attributes; } 31 | } 32 | } 33 | // End of GETATTR3res.cs 34 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/Commons/Name.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using System; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.Commons 10 | { 11 | public class Name : XdrAble 12 | { 13 | private String _value; 14 | 15 | public Name() 16 | { } 17 | 18 | public Name(String value) 19 | { this._value = value; } 20 | 21 | public Name(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { xdr.xdrEncodeString(this._value); } 26 | 27 | public void xdrDecode(XdrDecodingStream xdr) 28 | { this._value = xdr.xdrDecodeString(); } 29 | 30 | public String Value 31 | { 32 | get 33 | { return this._value; } 34 | set 35 | { this._value = value; } 36 | } 37 | } 38 | // End of filename.cs 39 | } -------------------------------------------------------------------------------- /NFSClient/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 192.168.56.3 7 | 8 | 9 | 10 | 11 | 12 | 60 13 | 14 | 15 | 0 16 | 17 | 18 | False 19 | 20 | 21 | True 22 | 23 | 24 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/FSInfoArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class FSInfoArguments : XdrAble 12 | { 13 | private NFSHandle _fsroot; 14 | 15 | public FSInfoArguments() 16 | { } 17 | 18 | public FSInfoArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._fsroot.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { 26 | this._fsroot = new NFSHandle(); 27 | this._fsroot.Version = V3.RPC.NFSv3Protocol.NFS_V3; 28 | this._fsroot.xdrDecode(xdr); 29 | } 30 | 31 | public NFSHandle FSRoot 32 | { 33 | get 34 | { return this._fsroot; } 35 | set 36 | { this._fsroot = value; } 37 | } 38 | } 39 | // End of FSINFO3args.cs 40 | } -------------------------------------------------------------------------------- /jrpcgen/src/org/acplt/oncrpc/apps/jrpcgen/JrpcgenParserException.cs: -------------------------------------------------------------------------------- 1 | namespace org.acplt.oncrpc.apps.jrpcgen 2 | { 3 | /// 4 | /// The JrpcgenParserException class represents a parser 5 | /// exception indicating to abort parsing the x-file. 6 | /// 7 | /// 8 | /// The JrpcgenParserException class represents a parser 9 | /// exception indicating to abort parsing the x-file. 10 | /// Converted to C# using the db4o Sharpen tool. 11 | /// 12 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:46 $ $State: Exp $ $Locker: $ 13 | /// 14 | /// Harald Albrecht 15 | /// Jay Walters 16 | [System.Serializable] 17 | internal class JrpcgenParserException : System.Exception 18 | { 19 | /// Constructs a JrpcgenParserException with no detail message. 20 | /// 21 | /// Constructs a JrpcgenParserException with no detail message. 22 | /// 23 | public JrpcgenParserException() : base() 24 | { 25 | } 26 | 27 | public JrpcgenParserException(string msg) 28 | : base(msg) 29 | { 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ReadLinkArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ReadLinkArguments : XdrAble 12 | { 13 | private NFSHandle _handle; 14 | 15 | public ReadLinkArguments() 16 | { } 17 | 18 | public ReadLinkArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._handle.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { 26 | this._handle = new NFSHandle(); 27 | this._handle.Version = V3.RPC.NFSv3Protocol.NFS_V3; 28 | this._handle.xdrDecode(xdr); 29 | } 30 | 31 | public NFSHandle Handle 32 | { 33 | get 34 | { return this._handle; } 35 | set 36 | { this._handle = value; } 37 | } 38 | } 39 | 40 | // End of READLINK3args.cs 41 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/FSStatisticsArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class FSStatisticsArguments : XdrAble 12 | { 13 | private NFSHandle _fsroot; 14 | 15 | public FSStatisticsArguments() 16 | { } 17 | 18 | public FSStatisticsArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._fsroot.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { 26 | this._fsroot = new NFSHandle(); 27 | this._fsroot.Version = V3.RPC.NFSv3Protocol.NFS_V3; 28 | this._fsroot.xdrDecode(xdr); 29 | } 30 | 31 | public NFSHandle FSRoot 32 | { 33 | get 34 | { return this._fsroot; } 35 | set 36 | { this._fsroot = value; } 37 | } 38 | } 39 | // End of FSSTAT3args.cs 40 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/PathConfigurationArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class PathConfigurationArguments : XdrAble 12 | { 13 | private NFSHandle _obj; 14 | 15 | public PathConfigurationArguments() 16 | { } 17 | 18 | public PathConfigurationArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._obj.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { 26 | this._obj = new NFSHandle(); 27 | this._obj.Version = V3.RPC.NFSv3Protocol.NFS_V3; 28 | this._obj.xdrDecode(xdr); 29 | } 30 | 31 | public NFSHandle Handle 32 | { 33 | get 34 | { return this._obj; } 35 | set 36 | { this._obj = value; } 37 | } 38 | } 39 | // End of PATHCONF3args.cs 40 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/GetAttributeArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class GetAttributeArguments : XdrAble 12 | { 13 | private NFSHandle _handle; 14 | 15 | public GetAttributeArguments() 16 | { } 17 | 18 | public GetAttributeArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._handle.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { 26 | this._handle = new NFSHandle(); 27 | this._handle.Version = V3.RPC.NFSv3Protocol.NFS_V3; 28 | this._handle.xdrDecode(xdr); ; 29 | } 30 | 31 | public NFSHandle Handle 32 | { 33 | get 34 | { return this._handle; } 35 | set 36 | { this._handle = value; } 37 | } 38 | } 39 | // End of GETATTR3args.cs 40 | } 41 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/SpecInformation.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC 9 | { 10 | public class SpecInformation : XdrAble 11 | { 12 | private int _specdata1; 13 | private int _specdata2; 14 | 15 | public SpecInformation() 16 | { } 17 | 18 | public SpecInformation(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { 23 | xdr.xdrEncodeInt(this._specdata1); 24 | xdr.xdrEncodeInt(this._specdata2); 25 | } 26 | 27 | public void xdrDecode(XdrDecodingStream xdr) 28 | { 29 | this._specdata1 = xdr.xdrDecodeInt(); 30 | this._specdata2 = xdr.xdrDecodeInt(); 31 | } 32 | 33 | public int SpecData1 34 | { 35 | get 36 | { return this._specdata1; } 37 | } 38 | 39 | public int SpecData2 40 | { 41 | get 42 | { return this._specdata2; } 43 | } 44 | } 45 | // End of specdata3.cs 46 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/Mount/MountList.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC.Mount 9 | { 10 | public class MountList : XdrAble 11 | { 12 | private MountBody _value; 13 | 14 | public MountList() 15 | { } 16 | 17 | public MountList(MountBody value) 18 | { this._value = value; } 19 | 20 | public MountList(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | if (this._value != null) 26 | { 27 | xdr.xdrEncodeBoolean(true); 28 | this._value.xdrEncode(xdr); 29 | } 30 | else { xdr.xdrEncodeBoolean(false); }; 31 | } 32 | 33 | public void xdrDecode(XdrDecodingStream xdr) 34 | { 35 | this._value = xdr.xdrDecodeBoolean() ? new MountBody(xdr) : null; 36 | } 37 | 38 | public MountBody Value 39 | { 40 | get 41 | { return this._value; } 42 | } 43 | } 44 | // End of mountlist3.cs 45 | } -------------------------------------------------------------------------------- /jrpcgen/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/WritingData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC 9 | { 10 | public class WritingData : XdrAble 11 | { 12 | private PreOperationAttributes _before; 13 | private PostOperationAttributes _after; 14 | 15 | public WritingData() 16 | { } 17 | 18 | public WritingData(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { 23 | this._before.xdrEncode(xdr); 24 | this._after.xdrEncode(xdr); 25 | } 26 | 27 | public void xdrDecode(XdrDecodingStream xdr) 28 | { 29 | this._before = new PreOperationAttributes(xdr); 30 | this._after = new PostOperationAttributes(xdr); 31 | } 32 | 33 | public PreOperationAttributes Before 34 | { 35 | get 36 | { return this._before; } 37 | } 38 | 39 | public PostOperationAttributes After 40 | { 41 | get 42 | { return this._after; } 43 | } 44 | } 45 | // End of wcc_data.cs 46 | } -------------------------------------------------------------------------------- /NFSClient/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("NFSClient")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NekoDrive.NFS")] 13 | [assembly: AssemblyCopyright("Copyright © Mirko Gatto 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("19fe7040-3e33-40fe-bdd8-ae52abf764a5")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("1.7.*")] 33 | [assembly: AssemblyFileVersion("1.7.0.0")] 34 | -------------------------------------------------------------------------------- /jrpcgen/src/org/acplt/oncrpc/apps/jrpcgen/JrpcgenParamInfo.cs: -------------------------------------------------------------------------------- 1 | namespace org.acplt.oncrpc.apps.jrpcgen 2 | { 3 | /// 4 | /// The JrpcgenParamInfo class contains information about the 5 | /// data type of a procedure's parameter, as well as the parameter's optional 6 | /// name. 7 | /// 8 | /// 9 | /// The JrpcgenParamInfo class contains information about the 10 | /// data type of a procedure's parameter, as well as the parameter's optional 11 | /// name. 12 | /// Converted to C# using the db4o Sharpen tool. 13 | /// 14 | /// $Revision: 1.2 $ $Date: 2003/08/14 08:09:59 $ $State: Exp $ $Locker: $ 15 | /// Harald Albrecht 16 | /// Jay Walters 17 | internal class JrpcgenParamInfo 18 | { 19 | public string parameterType; 20 | 21 | public string parameterName; 22 | 23 | /// 24 | /// Constructs a new JrpcgenParamInfo object containing 25 | /// information about ... 26 | /// 27 | /// 28 | /// Constructs a new JrpcgenParamInfo object containing 29 | /// information about ... 30 | /// 31 | public JrpcgenParamInfo(string parameterType, string parameterName) 32 | { 33 | this.parameterType = parameterType; 34 | this.parameterName = parameterName; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /remoteteanet/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("RemoteTea.Net")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("RemoteTea.Net.Properties")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("bec3dadf-000f-4202-b697-d2af4e723bdc")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("1.0.0.0")] 33 | [assembly: AssemblyFileVersion("1.0.0.0")] 34 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/LinkArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class LinkArguments : XdrAble 12 | { 13 | private NFSHandle _from; 14 | private ItemOperationArguments _to; 15 | 16 | public LinkArguments() 17 | { } 18 | 19 | public LinkArguments(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._from.xdrEncode(xdr); 25 | this._to.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._from = new NFSHandle(); 31 | this._from.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 32 | this._from.xdrDecode(xdr); 33 | this._to = new ItemOperationArguments(xdr); 34 | } 35 | 36 | public NFSHandle From 37 | { 38 | get 39 | { return this._from; } 40 | } 41 | 42 | public ItemOperationArguments To 43 | { 44 | get 45 | { return this._to; } 46 | } 47 | } 48 | // End of linkargs.cs 49 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/RenameArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V2.RPC 9 | { 10 | public class RenameArguments : XdrAble 11 | { 12 | private ItemOperationArguments _from; 13 | private ItemOperationArguments _to; 14 | 15 | public RenameArguments() 16 | { } 17 | 18 | public RenameArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { 23 | this._from.xdrEncode(xdr); 24 | this._to.xdrEncode(xdr); 25 | } 26 | 27 | public void xdrDecode(XdrDecodingStream xdr) 28 | { 29 | this._from = new ItemOperationArguments(xdr); 30 | this._to = new ItemOperationArguments(xdr); 31 | } 32 | 33 | public ItemOperationArguments From 34 | { 35 | get 36 | { return this._from; } 37 | set 38 | { this._from = value; } 39 | } 40 | 41 | public ItemOperationArguments To 42 | { 43 | get 44 | { return this._to; } 45 | set 46 | { this._to = value; } 47 | } 48 | } 49 | // End of renameargs.cs 50 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/RenameArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC 9 | { 10 | public class RenameArguments : XdrAble 11 | { 12 | private ItemOperationArguments _from; 13 | private ItemOperationArguments _to; 14 | 15 | public RenameArguments() 16 | { } 17 | 18 | public RenameArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { 23 | this._from.xdrEncode(xdr); 24 | this._to.xdrEncode(xdr); 25 | } 26 | 27 | public void xdrDecode(XdrDecodingStream xdr) 28 | { 29 | this._from = new ItemOperationArguments(xdr); 30 | this._to = new ItemOperationArguments(xdr); 31 | } 32 | 33 | public ItemOperationArguments From 34 | { 35 | get 36 | { return this._from; } 37 | set 38 | { this._from = value; } 39 | } 40 | 41 | public ItemOperationArguments To 42 | { 43 | get 44 | { return this._to; } 45 | set 46 | { this._to = value; } 47 | } 48 | } 49 | // End of renameargs.cs 50 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/Commons/INFS.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Net; 5 | 6 | namespace NFSLibrary.Protocols.Commons 7 | { 8 | public interface INFS 9 | { 10 | void Connect(IPAddress Address, int UserID, int GroupID, int ClientTimeout, System.Text.Encoding characterEncoding, bool useSecurePort); 11 | 12 | void Disconnect(); 13 | 14 | List GetExportedDevices(); 15 | 16 | void MountDevice(String DeviceName); 17 | 18 | void UnMountDevice(); 19 | 20 | List GetItemList(String DirectoryFullName); 21 | 22 | NFSAttributes GetItemAttributes(String ItemFullName, bool ThrowExceptionIfNotFound); 23 | 24 | void CreateDirectory(String DirectoryFullName, NFSPermission Mode); 25 | 26 | void DeleteDirectory(String DirectoryFullName); 27 | 28 | void DeleteFile(String FileFullName); 29 | 30 | void CreateFile(String FileFullName, NFSPermission Mode); 31 | 32 | int Read(String FileFullName, long Offset, int Count, ref byte[] Buffer); 33 | 34 | void SetFileSize(String FileFullName, long Size); 35 | 36 | int Write(String FileFullName, long Offset, int Count, byte[] Buffer); 37 | 38 | void Move(String OldDirectoryFullName, String OldFileName, String NewDirectoryFullName, String NewFileName); 39 | 40 | bool IsDirectory(String DirectoryFullName); 41 | 42 | void CompleteIO(); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/Commons/NFSTimeValue.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.Commons 9 | { 10 | public class NFSTimeValue : XdrAble 11 | { 12 | private int _seconds; 13 | private int _useconds; 14 | 15 | public NFSTimeValue() 16 | { 17 | this._seconds = -1; 18 | this._useconds = -1; 19 | } 20 | 21 | public NFSTimeValue(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | xdr.xdrEncodeInt(this._seconds); 27 | xdr.xdrEncodeInt(this._useconds); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._seconds = xdr.xdrDecodeInt(); 33 | this._useconds = xdr.xdrDecodeInt(); 34 | } 35 | 36 | public int Seconds 37 | { 38 | get 39 | { return this._seconds; } 40 | set 41 | { this._seconds = value; } 42 | } 43 | 44 | public int UnixSeconds 45 | { 46 | get 47 | { return this._useconds; } 48 | set 49 | { this._useconds = value; } 50 | } 51 | } 52 | // End of nfstimeval.cs 53 | } -------------------------------------------------------------------------------- /NekoDrive/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("NekoDrive")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NekoDrive")] 13 | [assembly: AssemblyCopyright("Copyright © Mirko Gatto 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("9b995756-a1c0-4639-aa88-4b0a6555d148")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("0.9.*")] 36 | -------------------------------------------------------------------------------- /RPC_NFS/NFSv2MountProtocol: -------------------------------------------------------------------------------- 1 | const MNTPATHLEN = 1024; 2 | const MNTNAMLEN = 255; 3 | const FHSIZE = 32; 4 | 5 | typedef opaque fhandle[FHSIZE]; 6 | 7 | typedef string dirpath; 8 | 9 | typedef string name; 10 | 11 | union fhstatus switch (unsigned status) { 12 | case 0: 13 | fhandle directory; 14 | default: 15 | void; 16 | }; 17 | 18 | typedef struct mountbody *mountlist; 19 | 20 | struct mountbody { 21 | name hostname; 22 | dirpath directory; 23 | mountlist nextentry; 24 | }; 25 | 26 | typedef struct groupnode *groups; 27 | 28 | struct groupnode { 29 | name grname; 30 | groups grnext; 31 | }; 32 | 33 | typedef struct exportnode *exports; 34 | 35 | struct exportnode { 36 | dirpath filesys; 37 | groups exgroups; 38 | exports next; 39 | }; 40 | 41 | 42 | program MOUNTPROG { 43 | /* 44 | * Version 1 of the mount protocol used with 45 | * version 2 of the NFS protocol. 46 | */ 47 | version MOUNTVERS { 48 | 49 | void 50 | MOUNTPROC_NULL(void) = 0; 51 | 52 | fhstatus 53 | MOUNTPROC_MNT(dirpath) = 1; 54 | 55 | mountlist 56 | MOUNTPROC_DUMP(void) = 2; 57 | 58 | void 59 | MOUNTPROC_UMNT(dirpath) = 3; 60 | 61 | void 62 | MOUNTPROC_UMNTALL(void) = 4; 63 | 64 | exports 65 | MOUNTPROC_EXPORT(void) = 5; 66 | } = 1; 67 | } = 100005; -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/MakeFolderArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC 9 | { 10 | public class MakeFolderArguments : XdrAble 11 | { 12 | private ItemOperationArguments _where; 13 | private MakeAttributes _attributes; 14 | 15 | public MakeFolderArguments() 16 | { } 17 | 18 | public MakeFolderArguments(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { 23 | this._where.xdrEncode(xdr); 24 | this._attributes.xdrEncode(xdr); 25 | } 26 | 27 | public void xdrDecode(XdrDecodingStream xdr) 28 | { 29 | this._where = new ItemOperationArguments(xdr); 30 | this._attributes = new MakeAttributes(xdr); 31 | } 32 | 33 | public ItemOperationArguments Where 34 | { 35 | get 36 | { return this._where; } 37 | set 38 | { this._where = value; } 39 | } 40 | 41 | public MakeAttributes Attributes 42 | { 43 | get 44 | { return this._attributes; } 45 | set 46 | { this._attributes = value; } 47 | } 48 | } 49 | // End of MKDIR3args.cs 50 | } 51 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/PreOperationAttributes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC 9 | { 10 | public class PreOperationAttributes : XdrAble 11 | { 12 | private bool _attributes_follow; 13 | private WritingAttributes _attributes; 14 | 15 | public PreOperationAttributes() 16 | { } 17 | 18 | public PreOperationAttributes(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { 23 | xdr.xdrEncodeBoolean(this._attributes_follow); 24 | if (this._attributes_follow) 25 | { this._attributes.xdrEncode(xdr); } 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._attributes_follow = xdr.xdrDecodeBoolean(); 31 | if (this._attributes_follow) 32 | { this._attributes = new WritingAttributes(xdr); } 33 | } 34 | 35 | public bool AttributesExists 36 | { 37 | get 38 | { return this._attributes_follow; } 39 | } 40 | 41 | public WritingAttributes Attributes 42 | { 43 | get 44 | { return this._attributes; } 45 | } 46 | } 47 | // End of pre_op_attr.cs 48 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/PostOperationAttributes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V3.RPC 9 | { 10 | public class PostOperationAttributes : XdrAble 11 | { 12 | private bool _attributes_follow; 13 | private FileAttributes _attributes; 14 | 15 | public PostOperationAttributes() 16 | { } 17 | 18 | public PostOperationAttributes(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { 23 | xdr.xdrEncodeBoolean(this._attributes_follow); 24 | 25 | if (this._attributes_follow) 26 | { this._attributes.xdrEncode(xdr); } 27 | } 28 | 29 | public void xdrDecode(XdrDecodingStream xdr) 30 | { 31 | this._attributes_follow = xdr.xdrDecodeBoolean(); 32 | 33 | if (this._attributes_follow) 34 | { this._attributes = new FileAttributes(xdr); } 35 | } 36 | 37 | public bool AttributesExists 38 | { 39 | get 40 | { return this._attributes_follow; } 41 | } 42 | 43 | public FileAttributes Attributes 44 | { 45 | get 46 | { return this._attributes; } 47 | } 48 | } 49 | // End of post_op_attr.cs 50 | } -------------------------------------------------------------------------------- /jrpcgen/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("jrpcgen")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("jrpcgen")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("12c91902-61f7-4b8e-9f43-1be23d743252")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/AccessArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class AccessArguments : XdrAble 12 | { 13 | private NFSHandle _obj; 14 | private int _access; 15 | 16 | public AccessArguments() 17 | { } 18 | 19 | public AccessArguments(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._obj.xdrEncode(xdr); 25 | xdr.xdrEncodeInt(this._access); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._obj = new NFSHandle(); 31 | this._obj.Version = V3.RPC.NFSv3Protocol.NFS_V3; 32 | this._obj.xdrDecode(xdr); 33 | this._access = xdr.xdrDecodeInt(); 34 | } 35 | 36 | public NFSHandle Handle 37 | { 38 | get 39 | { return this._obj; } 40 | set 41 | { this._obj = value; } 42 | } 43 | 44 | public int Access 45 | { 46 | get 47 | { return this._access; } 48 | set 49 | { this._access = value; } 50 | } 51 | } 52 | // End of ACCESS3args.cs 53 | } -------------------------------------------------------------------------------- /jportmap/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("jportmap")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("jportmap")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("223d6da4-0b3a-45c0-8624-b842afbb8d5f")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /DokanNet/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | // 10 | [assembly: AssemblyTitle("DokanNet")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("DokanNet")] 15 | [assembly: AssemblyCopyright("Copyright (C) 2007")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | 25 | 26 | // The following GUID is for the ID of the typelib if this project is exposed to COM 27 | [assembly: Guid("faf94eee-9bae-4ada-8f96-614ca17f7854")] 28 | 29 | 30 | // 31 | // Version information for an assembly consists of the following four values: 32 | // 33 | // Major Version 34 | // Minor Version 35 | // Build Number 36 | // Revision 37 | // 38 | // You can specify all the values or you can default the Revision and Build Numbers 39 | // by using the '*' as shown below: 40 | [assembly: AssemblyVersion("1.0.0.0")] 41 | [assembly: AssemblyFileVersion("1.0.0.0")] 42 | -------------------------------------------------------------------------------- /jrpcgen/Properties/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /NFSLibrary/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("NFSLibrary")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NFSLibrary")] 13 | [assembly: AssemblyCopyright("Copyright © Mirko Gatto 2011")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("a7d82f6c-a9a2-4a9d-a98c-6e711024aea5")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("0.8.*")] 36 | [assembly: AssemblyFileVersion("0.8.0.0")] 37 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ItemOperationArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ItemOperationArguments : XdrAble 12 | { 13 | private NFSHandle _dir; 14 | private Name _name; 15 | 16 | public ItemOperationArguments() 17 | { } 18 | 19 | public ItemOperationArguments(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._dir.xdrEncode(xdr); 25 | this._name.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._dir = new NFSHandle(); 31 | this._dir.Version = V3.RPC.NFSv3Protocol.NFS_V3; 32 | this._dir.xdrDecode(xdr); 33 | this._name = new Name(xdr); 34 | } 35 | 36 | public NFSHandle Directory 37 | { 38 | get 39 | { return this._dir; } 40 | set 41 | { this._dir = value; } 42 | } 43 | 44 | public Name Name 45 | { 46 | get 47 | { return this._name; } 48 | set 49 | { this._name = value; } 50 | } 51 | } 52 | // End of diropargs.cs 53 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/ItemOperationArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class ItemOperationArguments : XdrAble 12 | { 13 | private NFSHandle _dir; 14 | private Name _name; 15 | 16 | public ItemOperationArguments() 17 | { } 18 | 19 | public ItemOperationArguments(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._dir.xdrEncode(xdr); 25 | this._name.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._dir = new NFSHandle(); 31 | this._dir.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 32 | this._dir.xdrDecode(xdr); 33 | this._name = new Name(xdr); 34 | } 35 | 36 | public NFSHandle Directory 37 | { 38 | get 39 | { return this._dir; } 40 | set 41 | { this._dir = value; } 42 | } 43 | 44 | public Name Name 45 | { 46 | get 47 | { return this._name; } 48 | set 49 | { this._name = value; } 50 | } 51 | } 52 | // End of diropargs.cs 53 | } -------------------------------------------------------------------------------- /NFSClient/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 192.168.56.3 12 | 13 | 14 | 15 | 16 | 17 | 60 18 | 19 | 20 | 0 21 | 22 | 23 | False 24 | 25 | 26 | True 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/LinkArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class LinkArguments : XdrAble 12 | { 13 | private NFSHandle _file; 14 | private ItemOperationArguments _link; 15 | 16 | public LinkArguments() 17 | { } 18 | 19 | public LinkArguments(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._file.xdrEncode(xdr); 25 | this._link.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._file = new NFSHandle(); 31 | this._file.Version = V3.RPC.NFSv3Protocol.NFS_V3; 32 | this._file.xdrDecode(xdr); 33 | this._link = new ItemOperationArguments(xdr); 34 | } 35 | 36 | public NFSHandle Handle 37 | { 38 | get 39 | { return this._file; } 40 | set 41 | { this._file = value; } 42 | } 43 | 44 | public ItemOperationArguments Link 45 | { 46 | get 47 | { return this._link; } 48 | set 49 | { this._link = value; } 50 | } 51 | } 52 | // End of LINK3args.cs 53 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/FileArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class FileArguments : XdrAble 12 | { 13 | private NFSHandle _file; 14 | private CreateAttributes _attributes; 15 | 16 | public FileArguments() 17 | { } 18 | 19 | public FileArguments(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._file.xdrEncode(xdr); 25 | this._attributes.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._file = new NFSHandle(); 31 | this._file.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 32 | this._file.xdrDecode(xdr); 33 | this._attributes = new CreateAttributes(xdr); 34 | } 35 | 36 | public NFSHandle File 37 | { 38 | get 39 | { return this._file; } 40 | set 41 | { this._file = value; } 42 | } 43 | 44 | public CreateAttributes Attributes 45 | { 46 | get 47 | { return this._attributes; } 48 | set 49 | { this._attributes = value; } 50 | } 51 | } 52 | // End of sattrargs.cs 53 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/Mount/MountBody.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC.Mount 10 | { 11 | public class MountBody : XdrAble 12 | { 13 | private Name _hostname; 14 | private Name _directory; 15 | private MountList _nextentry; 16 | 17 | public MountBody() 18 | { } 19 | 20 | public MountBody(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._hostname.xdrEncode(xdr); 26 | this._directory.xdrEncode(xdr); 27 | this._nextentry.xdrEncode(xdr); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._hostname = new Name(xdr); 33 | this._directory = new Name(xdr); 34 | this._nextentry = new MountList(xdr); 35 | } 36 | 37 | public Name HostName 38 | { 39 | get 40 | { return this._hostname; } 41 | } 42 | 43 | public Name Directory 44 | { 45 | get 46 | { return this._directory; } 47 | } 48 | 49 | public MountList NextEntry 50 | { 51 | get 52 | { return this._nextentry; } 53 | } 54 | } 55 | // End of mountbody3.cs 56 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/WritingAttributes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class WritingAttributes : XdrAble 12 | { 13 | private long _size; 14 | private NFSTimeValue _mtime; 15 | private NFSTimeValue _ctime; 16 | 17 | public WritingAttributes() 18 | { } 19 | 20 | public WritingAttributes(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | xdr.xdrEncodeLong(this._size); 26 | this._mtime.xdrEncode(xdr); 27 | this._ctime.xdrEncode(xdr); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._size = xdr.xdrDecodeLong(); 33 | this._mtime = new NFSTimeValue(xdr); 34 | this._ctime = new NFSTimeValue(xdr); 35 | } 36 | 37 | public long Size 38 | { 39 | get 40 | { return this._size; } 41 | } 42 | 43 | public NFSTimeValue ModifiedTime 44 | { 45 | get 46 | { return this._mtime; } 47 | } 48 | 49 | public NFSTimeValue CreateTime 50 | { 51 | get 52 | { return this._ctime; } 53 | } 54 | } 55 | // End of wcc_attr.cs 56 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/SymlinkArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class SymlinkArguments : XdrAble 12 | { 13 | private ItemOperationArguments _from; 14 | private Name _to; 15 | private CreateAttributes _attributes; 16 | 17 | public SymlinkArguments() 18 | { } 19 | 20 | public SymlinkArguments(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._from.xdrEncode(xdr); 26 | this._to.xdrEncode(xdr); 27 | this._attributes.xdrEncode(xdr); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._from = new ItemOperationArguments(xdr); 33 | this._to = new Name(xdr); 34 | this._attributes = new CreateAttributes(xdr); 35 | } 36 | 37 | public ItemOperationArguments From 38 | { 39 | get 40 | { return this._from; } 41 | } 42 | 43 | public Name To 44 | { 45 | get 46 | { return this._to; } 47 | } 48 | 49 | public CreateAttributes Attributes 50 | { 51 | get 52 | { return this._attributes; } 53 | } 54 | } 55 | // End of symlinkargs.cs 56 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/RemoveStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class RemoveAccessOK : XdrAble 12 | { 13 | private WritingData _dir_wcc; 14 | 15 | public RemoveAccessOK() 16 | { } 17 | 18 | public RemoveAccessOK(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._dir_wcc.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { this._dir_wcc = new WritingData(xdr); } 26 | 27 | public WritingData Data 28 | { 29 | get 30 | { return this._dir_wcc; } 31 | } 32 | } 33 | 34 | public class RemoveAccessFAIL : XdrAble 35 | { 36 | private WritingData _dir_wcc; 37 | 38 | public RemoveAccessFAIL() 39 | { } 40 | 41 | public RemoveAccessFAIL(XdrDecodingStream xdr) 42 | { xdrDecode(xdr); } 43 | 44 | public void xdrEncode(XdrEncodingStream xdr) 45 | { this._dir_wcc.xdrEncode(xdr); } 46 | 47 | public void xdrDecode(XdrDecodingStream xdr) 48 | { this._dir_wcc = new WritingData(xdr); } 49 | 50 | public WritingData Data 51 | { 52 | get 53 | { return this._dir_wcc; } 54 | } 55 | } 56 | // End of RMDIR3res.cs 57 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/NFSv2Protocol.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | /** 7 | * A collection of constants used by the "NFSv2Protocol" ONC/RPC program. 8 | */ 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class NFSv2Protocol 12 | { 13 | public const int NFS_PROGRAM = 100003; 14 | public const int NFS_VERSION = 2; 15 | 16 | public const int NFSPROC_NULL = 0; 17 | public const int NFSPROC_GETATTR = 1; 18 | public const int NFSPROC_SETATTR = 2; 19 | public const int NFSPROC_ROOT = 3; 20 | public const int NFSPROC_LOOKUP = 4; 21 | public const int NFSPROC_READLINK = 5; 22 | public const int NFSPROC_READ = 6; 23 | public const int NFSPROC_WRITECACHE = 7; 24 | public const int NFSPROC_WRITE = 8; 25 | public const int NFSPROC_CREATE = 9; 26 | public const int NFSPROC_REMOVE = 10; 27 | public const int NFSPROC_RENAME = 11; 28 | public const int NFSPROC_LINK = 12; 29 | public const int NFSPROC_SYMLINK = 13; 30 | public const int NFSPROC_MKDIR = 14; 31 | public const int NFSPROC_RMDIR = 15; 32 | public const int NFSPROC_READDIR = 16; 33 | public const int NFSPROC_STATFS = 17; 34 | 35 | public const int COOKIESIZE = 4; 36 | public const int MAXPATHLEN = 1024; 37 | public const int MAXNAMLEN = 255; 38 | public const int MAXDATA = 8192; 39 | public const int FHSIZE = 32; 40 | } 41 | // End of NFSv2Protocol.cs 42 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/SetAttributeStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class SetAttributeAccessOK : XdrAble 12 | { 13 | private WritingData _dir_wcc; 14 | 15 | public SetAttributeAccessOK() 16 | { } 17 | 18 | public SetAttributeAccessOK(XdrDecodingStream xdr) 19 | { xdrDecode(xdr); } 20 | 21 | public void xdrEncode(XdrEncodingStream xdr) 22 | { this._dir_wcc.xdrEncode(xdr); } 23 | 24 | public void xdrDecode(XdrDecodingStream xdr) 25 | { this._dir_wcc = new WritingData(xdr); } 26 | 27 | public WritingData Data 28 | { 29 | get 30 | { return this._dir_wcc; } 31 | } 32 | } 33 | 34 | public class SetAttributeAccessFAIL : XdrAble 35 | { 36 | private WritingData _dir_wcc; 37 | 38 | public SetAttributeAccessFAIL() 39 | { } 40 | 41 | public SetAttributeAccessFAIL(XdrDecodingStream xdr) 42 | { xdrDecode(xdr); } 43 | 44 | public void xdrEncode(XdrEncodingStream xdr) 45 | { this._dir_wcc.xdrEncode(xdr); } 46 | 47 | public void xdrDecode(XdrDecodingStream xdr) 48 | { this._dir_wcc = new WritingData(xdr); } 49 | 50 | public WritingData Data 51 | { 52 | get 53 | { return this._dir_wcc; } 54 | } 55 | } 56 | // End of RMDIR3res.cs 57 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/FSStatStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class FSStatStatus : XdrAble 12 | { 13 | private NFSStats _status; 14 | private Info _ok; 15 | 16 | public FSStatStatus() 17 | { } 18 | 19 | public FSStatStatus(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | xdr.xdrEncodeInt((int)this._status); 25 | 26 | switch (this._status) 27 | { 28 | case NFSStats.NFS_OK: 29 | this._ok.xdrEncode(xdr); 30 | break; 31 | default: 32 | break; 33 | } 34 | } 35 | 36 | public void xdrDecode(XdrDecodingStream xdr) 37 | { 38 | this._status = (NFSStats)xdr.xdrDecodeInt(); 39 | 40 | switch (this._status) 41 | { 42 | case NFSStats.NFS_OK: 43 | this._ok = new Info(xdr); 44 | break; 45 | default: 46 | break; 47 | } 48 | } 49 | 50 | public NFSStats Status 51 | { 52 | get 53 | { return this._status; } 54 | } 55 | 56 | public Info OK 57 | { 58 | get 59 | { return this._ok; } 60 | } 61 | } 62 | // End of statfsres.cs 63 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/LinkStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class LinkStatus : XdrAble 12 | { 13 | private NFSStats _status; 14 | private Name _linkname; 15 | 16 | public LinkStatus() 17 | { } 18 | 19 | public LinkStatus(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | xdr.xdrEncodeInt((int)this._status); 25 | 26 | switch (this._status) 27 | { 28 | case NFSStats.NFS_OK: 29 | this._linkname.xdrEncode(xdr); 30 | break; 31 | default: 32 | break; 33 | } 34 | } 35 | 36 | public void xdrDecode(XdrDecodingStream xdr) 37 | { 38 | this._status = (NFSStats)xdr.xdrDecodeInt(); 39 | 40 | switch (this._status) 41 | { 42 | case NFSStats.NFS_OK: 43 | this._linkname = new Name(xdr); 44 | break; 45 | default: 46 | break; 47 | } 48 | } 49 | 50 | public NFSStats Status 51 | { 52 | get 53 | { return this._status; } 54 | } 55 | 56 | public Name LinkName 57 | { 58 | get 59 | { return this._linkname; } 60 | } 61 | } 62 | // End of readlinkres.cs 63 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/FileStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class FileStatus : XdrAble 12 | { 13 | private NFSStats _status; 14 | private FileAttributes _attributes; 15 | 16 | public FileStatus() 17 | { } 18 | 19 | public FileStatus(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | xdr.xdrEncodeInt((int)this._status); 25 | 26 | switch (this._status) 27 | { 28 | case NFSStats.NFS_OK: 29 | this._attributes.xdrEncode(xdr); 30 | break; 31 | default: 32 | break; 33 | } 34 | } 35 | 36 | public void xdrDecode(XdrDecodingStream xdr) 37 | { 38 | this._status = (NFSStats)xdr.xdrDecodeInt(); 39 | 40 | switch (this._status) 41 | { 42 | case NFSStats.NFS_OK: 43 | this._attributes = new FileAttributes(xdr); 44 | break; 45 | default: 46 | break; 47 | } 48 | } 49 | 50 | public NFSStats Status 51 | { 52 | get 53 | { return this._status; } 54 | } 55 | 56 | public FileAttributes Attributes 57 | { 58 | get 59 | { return this._attributes; } 60 | } 61 | } 62 | // End of attrstat.cs 63 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ReadArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ReadArguments : XdrAble 12 | { 13 | private NFSHandle _file; 14 | private long _offset; 15 | private int _count; 16 | 17 | public ReadArguments() 18 | { } 19 | 20 | public ReadArguments(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._file.xdrEncode(xdr); 26 | xdr.xdrEncodeLong(this._offset); 27 | xdr.xdrEncodeInt(this._count); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._file = new NFSHandle(); 33 | this._file.Version = V3.RPC.NFSv3Protocol.NFS_V3; 34 | this._file.xdrDecode(xdr); 35 | this._offset = xdr.xdrDecodeLong(); 36 | this._count = xdr.xdrDecodeInt(); 37 | } 38 | 39 | public NFSHandle File 40 | { 41 | get 42 | { return this._file; } 43 | set 44 | { this._file = value; } 45 | } 46 | 47 | public long Offset 48 | { 49 | get 50 | { return this._offset; } 51 | set 52 | { this._offset = value; } 53 | } 54 | 55 | public int Count 56 | { 57 | get 58 | { return this._count; } 59 | set 60 | { this._count = value; } 61 | } 62 | } 63 | // End of readargs.cs 64 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/CommitArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class CommitArguments : XdrAble 12 | { 13 | private NFSHandle _file; 14 | private long _offset; 15 | private int _count; 16 | 17 | public CommitArguments() 18 | { } 19 | 20 | public CommitArguments(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._file.xdrEncode(xdr); 26 | xdr.xdrEncodeLong(this._offset); 27 | xdr.xdrEncodeInt(this._count); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._file = new NFSHandle(); 33 | this._file.Version = V3.RPC.NFSv3Protocol.NFS_V3; 34 | this._file.xdrDecode(xdr); 35 | this._offset = xdr.xdrDecodeLong(); 36 | this._count = xdr.xdrDecodeInt(); 37 | } 38 | 39 | public NFSHandle File 40 | { 41 | get 42 | { return this._file; } 43 | set 44 | { this._file = value; } 45 | } 46 | 47 | public long Offset 48 | { 49 | get 50 | { return this._offset; } 51 | set 52 | { this._offset = value; } 53 | } 54 | 55 | public int Count 56 | { 57 | get 58 | { return this._count; } 59 | set 60 | { this._count = value; } 61 | } 62 | } 63 | // End of COMMIT3args.cs 64 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/ItemArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class ItemArguments : XdrAble 12 | { 13 | private NFSHandle _item; 14 | private NFSCookie _cookie; 15 | private int _count; 16 | 17 | public ItemArguments() 18 | { } 19 | 20 | public ItemArguments(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._item.xdrEncode(xdr); 26 | this._cookie.xdrEncode(xdr); 27 | xdr.xdrEncodeInt(this._count); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._item = new NFSHandle(); 33 | this._item.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 34 | this._item.xdrDecode(xdr); 35 | this._cookie = new NFSCookie(xdr); 36 | this._count = xdr.xdrDecodeInt(); 37 | } 38 | 39 | public NFSHandle HandleObject 40 | { 41 | get 42 | { return this._item; } 43 | set 44 | { this._item = value; } 45 | } 46 | 47 | public NFSCookie Cookie 48 | { 49 | get 50 | { return this._cookie; } 51 | set 52 | { this._cookie = value; } 53 | } 54 | 55 | public int Count 56 | { 57 | get 58 | { return this._count; } 59 | set 60 | { this._count = value; } 61 | } 62 | } 63 | // End of readdirargs.cs 64 | } -------------------------------------------------------------------------------- /jrpcgen/src/org/acplt/oncrpc/apps/jrpcgen/JrpcgenSymbols.cs: -------------------------------------------------------------------------------- 1 | 2 | //---------------------------------------------------- 3 | // The following code was generated by C# CUP v0.1 4 | // 12/27/2009 3:49:01 PM 5 | //---------------------------------------------------- 6 | 7 | namespace org.acplt.oncrpc.apps.jrpcgen 8 | { 9 | 10 | /** CUP generated class containing symbol constants. */ 11 | public class JrpcgenSymbols { 12 | /* terminals */ 13 | public const int ENUM = 32; 14 | public const int STRUCT = 35; 15 | public const int BOOL = 31; 16 | public const int COMMA = 3; 17 | public const int RBRACE = 10; 18 | public const int VOID = 22; 19 | public const int LBRACKET = 11; 20 | public const int INT = 25; 21 | public const int LBRACE = 9; 22 | public const int UNSIGNED = 37; 23 | public const int TYPEDEF = 18; 24 | public const int DEFAULT = 21; 25 | public const int OPAQUE = 33; 26 | public const int INTEGER_LITERAL = 38; 27 | public const int QUADRUPLE = 30; 28 | public const int SWITCH = 19; 29 | public const int EQUAL = 5; 30 | public const int CONST = 17; 31 | public const int CASE = 20; 32 | public const int CHAR = 23; 33 | public const int EOF = 0; 34 | public const int RPAREN = 8; 35 | public const int COLON = 4; 36 | public const int LANGLE = 13; 37 | public const int LONG = 26; 38 | public const int FLOAT = 28; 39 | public const int LPAREN = 7; 40 | public const int SEMICOLON = 2; 41 | public const int STAR = 6; 42 | public const int VERSION = 16; 43 | public const int HYPER = 27; 44 | public const int RBRACKET = 12; 45 | public const int PROGRAM = 15; 46 | public const int SHORT = 24; 47 | public const int RANGLE = 14; 48 | public const int DOUBLE = 29; 49 | public const int IDENTIFIER = 39; 50 | public const int error = 1; 51 | public const int UNION = 36; 52 | public const int STRING = 34; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/AccessStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class AccessAccessOK : XdrAble 12 | { 13 | private PostOperationAttributes _obj_attributes; 14 | private int _access; 15 | 16 | public AccessAccessOK() 17 | { } 18 | 19 | public AccessAccessOK(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._obj_attributes.xdrEncode(xdr); 25 | xdr.xdrEncodeInt(this._access); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._obj_attributes = new PostOperationAttributes(xdr); 31 | this._access = xdr.xdrDecodeInt(); 32 | } 33 | 34 | public PostOperationAttributes Attributes 35 | { 36 | get 37 | { return this._obj_attributes; } 38 | } 39 | } 40 | 41 | public class AccessAccessFAIL : XdrAble 42 | { 43 | private PostOperationAttributes _obj_attributes; 44 | 45 | public AccessAccessFAIL() 46 | { } 47 | 48 | public AccessAccessFAIL(XdrDecodingStream xdr) 49 | { xdrDecode(xdr); } 50 | 51 | public void xdrEncode(XdrEncodingStream xdr) 52 | { this._obj_attributes.xdrEncode(xdr); } 53 | 54 | public void xdrDecode(XdrDecodingStream xdr) 55 | { this._obj_attributes = new PostOperationAttributes(xdr); } 56 | 57 | public PostOperationAttributes Attributes 58 | { 59 | get 60 | { return this._obj_attributes; } 61 | } 62 | } 63 | // End of ACCESS3res.cs 64 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/Commons/NFSHandle.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.Commons 9 | { 10 | public class NFSHandle : XdrAble 11 | { 12 | private byte[] _value; 13 | private int _version; 14 | 15 | public NFSHandle() 16 | { } 17 | 18 | public NFSHandle(byte[] value, int version) 19 | { 20 | this._value = value; 21 | this._version = version; 22 | } 23 | 24 | public NFSHandle(XdrDecodingStream xdr) 25 | { xdrDecode(xdr); } 26 | 27 | public void xdrEncode(XdrEncodingStream xdr) 28 | { 29 | switch (this._version) 30 | { 31 | case 2: 32 | xdr.xdrEncodeOpaque(this._value, V2.RPC.NFSv2Protocol.FHSIZE); 33 | break; 34 | case 3: 35 | xdr.xdrEncodeDynamicOpaque(this._value); 36 | break; 37 | } 38 | } 39 | 40 | public void xdrDecode(XdrDecodingStream xdr) 41 | { 42 | switch (this._version) 43 | { 44 | case 2: 45 | this._value = xdr.xdrDecodeOpaque(V2.RPC.NFSv2Protocol.FHSIZE); 46 | break; 47 | case 3: 48 | this._value = xdr.xdrDecodeDynamicOpaque(); 49 | break; 50 | } 51 | } 52 | 53 | public byte[] Value 54 | { 55 | get 56 | { return this._value; } 57 | } 58 | 59 | public int Version 60 | { 61 | get 62 | { return this._version; } 63 | set 64 | { this._version = value; } 65 | } 66 | } 67 | // End of nfshandle.cs 68 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/Info.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.V2.RPC 9 | { 10 | public class Info : XdrAble 11 | { 12 | private int _tsize; 13 | private int _bsize; 14 | private int _blocks; 15 | private int _bfree; 16 | private int _bavail; 17 | 18 | public Info() 19 | { } 20 | 21 | public Info(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | xdr.xdrEncodeInt(this._tsize); 27 | xdr.xdrEncodeInt(this._bsize); 28 | xdr.xdrEncodeInt(this._blocks); 29 | xdr.xdrEncodeInt(this._bfree); 30 | xdr.xdrEncodeInt(this._bavail); 31 | } 32 | 33 | public void xdrDecode(XdrDecodingStream xdr) 34 | { 35 | this._tsize = xdr.xdrDecodeInt(); 36 | this._bsize = xdr.xdrDecodeInt(); 37 | this._blocks = xdr.xdrDecodeInt(); 38 | this._bfree = xdr.xdrDecodeInt(); 39 | this._bavail = xdr.xdrDecodeInt(); 40 | } 41 | 42 | public int TSize 43 | { 44 | get 45 | { return this._tsize; } 46 | } 47 | 48 | public int BSize 49 | { 50 | get 51 | { return this._bsize; } 52 | } 53 | 54 | public int Blocks 55 | { 56 | get 57 | { return this._blocks; } 58 | } 59 | 60 | public int BFree 61 | { 62 | get 63 | { return this._bfree; } 64 | } 65 | 66 | public int BAvailable 67 | { 68 | get 69 | { return this._bavail; } 70 | } 71 | } 72 | // End of info.cs 73 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/Mount/MountStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC.Mount 10 | { 11 | public class MountStatus : XdrAble 12 | { 13 | private NFSMountStats _status; 14 | private NFSHandle _handle; 15 | 16 | public MountStatus() 17 | { } 18 | 19 | public MountStatus(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | xdr.xdrEncodeInt((int)this._status); 25 | 26 | switch (this._status) 27 | { 28 | case NFSMountStats.MNT_OK: 29 | this._handle.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 30 | this._handle.xdrEncode(xdr); 31 | break; 32 | default: 33 | break; 34 | } 35 | } 36 | 37 | public void xdrDecode(XdrDecodingStream xdr) 38 | { 39 | this._status = (NFSMountStats)xdr.xdrDecodeInt(); 40 | 41 | switch (this._status) 42 | { 43 | case NFSMountStats.MNT_OK: 44 | this._handle = new NFSHandle(); 45 | this._handle.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 46 | this._handle.xdrDecode(xdr); 47 | 48 | break; 49 | default: 50 | break; 51 | } 52 | } 53 | 54 | public NFSHandle Handle 55 | { 56 | get 57 | { return this._handle; } 58 | } 59 | 60 | public NFSMountStats Status 61 | { 62 | get 63 | { return this._status; } 64 | } 65 | } 66 | // End of fhstatus.cs 67 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/CommitStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class CommitAccessOK : XdrAble 12 | { 13 | private WritingData _file_wcc; 14 | private byte[] _verf; 15 | 16 | public CommitAccessOK() 17 | { } 18 | 19 | public CommitAccessOK(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._file_wcc.xdrEncode(xdr); 25 | xdr.xdrEncodeOpaque(this._verf, NFSv3Protocol.NFS3_WRITEVERFSIZE); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._file_wcc = new WritingData(xdr); 31 | this._verf = xdr.xdrDecodeOpaque(NFSv3Protocol.NFS3_WRITEVERFSIZE); 32 | } 33 | 34 | public WritingData Data 35 | { 36 | get 37 | { return this._file_wcc; } 38 | } 39 | 40 | public byte[] Verification 41 | { 42 | get 43 | { return this._verf; } 44 | } 45 | } 46 | 47 | public class CommitAccessFAIL : XdrAble 48 | { 49 | private WritingData _file_wcc; 50 | 51 | public CommitAccessFAIL() 52 | { } 53 | 54 | public CommitAccessFAIL(XdrDecodingStream xdr) 55 | { xdrDecode(xdr); } 56 | 57 | public void xdrEncode(XdrEncodingStream xdr) 58 | { this._file_wcc.xdrEncode(xdr); } 59 | 60 | public void xdrDecode(XdrDecodingStream xdr) 61 | { this._file_wcc = new WritingData(xdr); } 62 | 63 | public WritingData Data 64 | { 65 | get 66 | { return this._file_wcc; } 67 | } 68 | } 69 | // End of COMMIT3res.cs 70 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/Commons/NFSPermission.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.Commons 9 | { 10 | public class NFSPermission 11 | { 12 | private byte _user; 13 | private byte _group; 14 | private byte _other; 15 | 16 | public NFSPermission() 17 | { } 18 | 19 | public NFSPermission(byte UserAccess, byte GroupAccess, byte OtherAccess) 20 | { 21 | this._user = UserAccess; 22 | this._group = GroupAccess; 23 | this._other = OtherAccess; 24 | } 25 | 26 | public byte UserAccess 27 | { 28 | get 29 | { return this._user; } 30 | set 31 | { this._user = value; } 32 | } 33 | 34 | public byte GroupAccess 35 | { 36 | get 37 | { return this._group; } 38 | set 39 | { this._group = value; } 40 | } 41 | 42 | public byte OtherAccess 43 | { 44 | get 45 | { return this._other; } 46 | set 47 | { this._other = value; } 48 | } 49 | 50 | public int Mode 51 | { 52 | get 53 | { 54 | if (_user == 0xff && _group == 0xff && _other == 0xff) 55 | return -1; 56 | /* Calculate Permission */ 57 | return 58 | (((int)this._user) << 6) | (((int)this._group) << 3) | ((int)this._other); 59 | /* --- */ 60 | } 61 | set 62 | { 63 | int tUser = value, tGroup = value, tOther = value; 64 | 65 | this._user = (byte)((tUser >> 6) & 0x7); 66 | this._group = (byte)((tGroup >> 3) & 0x7); 67 | this._other = (byte)(tOther & 0x7); 68 | } 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ReadLinkStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ReadLinkAccessOK : XdrAble 12 | { 13 | private PostOperationAttributes _symlink_attributes; 14 | private Name _data; 15 | 16 | public ReadLinkAccessOK() 17 | { } 18 | 19 | public ReadLinkAccessOK(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._symlink_attributes.xdrEncode(xdr); 25 | this._data.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._symlink_attributes = new PostOperationAttributes(xdr); 31 | this._data = new Name(xdr); 32 | } 33 | 34 | public PostOperationAttributes Attributes 35 | { 36 | get 37 | { return this._symlink_attributes; } 38 | } 39 | 40 | public Name Name 41 | { 42 | get 43 | { return this._data; } 44 | } 45 | } 46 | 47 | public class ReadLinkAccessFAIL : XdrAble 48 | { 49 | private PostOperationAttributes _symlink_attributes; 50 | 51 | public ReadLinkAccessFAIL() 52 | { } 53 | 54 | public ReadLinkAccessFAIL(XdrDecodingStream xdr) 55 | { xdrDecode(xdr); } 56 | 57 | public void xdrEncode(XdrEncodingStream xdr) 58 | { this._symlink_attributes.xdrEncode(xdr); } 59 | 60 | public void xdrDecode(XdrDecodingStream xdr) 61 | { this._symlink_attributes = new PostOperationAttributes(xdr); } 62 | 63 | public PostOperationAttributes Attributes 64 | { 65 | get 66 | { return this._symlink_attributes; } 67 | } 68 | } 69 | // End of READLINK3res.cs 70 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/ReadArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class ReadArguments : XdrAble 12 | { 13 | private NFSHandle _file; 14 | private int _offset; 15 | private int _count; 16 | private int _totalcount; 17 | 18 | public ReadArguments() 19 | { } 20 | 21 | public ReadArguments(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | this._file.xdrEncode(xdr); 27 | xdr.xdrEncodeInt(this._offset); 28 | xdr.xdrEncodeInt(this._count); 29 | xdr.xdrEncodeInt(this._totalcount); 30 | } 31 | 32 | public void xdrDecode(XdrDecodingStream xdr) 33 | { 34 | this._file = new NFSHandle(); 35 | this._file.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 36 | this._file.xdrDecode(xdr); 37 | this._offset = xdr.xdrDecodeInt(); 38 | this._count = xdr.xdrDecodeInt(); 39 | this._totalcount = xdr.xdrDecodeInt(); 40 | } 41 | 42 | public NFSHandle File 43 | { 44 | get 45 | { return this._file; } 46 | set 47 | { this._file = value; } 48 | } 49 | 50 | public int Offset 51 | { 52 | get 53 | { return this._offset; } 54 | set 55 | { this._offset = value; } 56 | } 57 | 58 | public int Count 59 | { 60 | get 61 | { return this._count; } 62 | set 63 | { this._count = value; } 64 | } 65 | 66 | public int TotalCount 67 | { 68 | get 69 | { return this._totalcount; } 70 | set 71 | { this._totalcount = value; } 72 | } 73 | } 74 | // End of readargs.cs 75 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/Commons/Groups.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.Commons 9 | { 10 | public class Groups : XdrAble 11 | { 12 | private GroupNode _value; 13 | 14 | public Groups() 15 | { } 16 | 17 | public Groups(GroupNode value) 18 | { this._value = value; } 19 | 20 | public Groups(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | if (this._value != null) 26 | { 27 | xdr.xdrEncodeBoolean(true); 28 | this._value.xdrEncode(xdr); 29 | } 30 | else { xdr.xdrEncodeBoolean(false); }; 31 | } 32 | 33 | public void xdrDecode(XdrDecodingStream xdr) 34 | { 35 | this._value = xdr.xdrDecodeBoolean() ? new GroupNode(xdr) : null; 36 | } 37 | 38 | public GroupNode Value 39 | { 40 | get 41 | { return this._value; } 42 | } 43 | } 44 | 45 | public class GroupNode : XdrAble 46 | { 47 | private Name _grname; 48 | private Groups _grnext; 49 | 50 | public GroupNode() 51 | { } 52 | 53 | public GroupNode(XdrDecodingStream xdr) 54 | { xdrDecode(xdr); } 55 | 56 | public void xdrEncode(XdrEncodingStream xdr) 57 | { 58 | this._grname.xdrEncode(xdr); 59 | this._grnext.xdrEncode(xdr); 60 | } 61 | 62 | public void xdrDecode(XdrDecodingStream xdr) 63 | { 64 | this._grname = new Name(xdr); 65 | this._grnext = new Groups(xdr); 66 | } 67 | 68 | public Name GroupName 69 | { 70 | get 71 | { return this._grname; } 72 | } 73 | 74 | public Groups NextGroup 75 | { 76 | get 77 | { return this._grnext; } 78 | } 79 | } 80 | // End of groups.cs 81 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ResultObject.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using System; 7 | using NFSLibrary.Protocols.Commons; 8 | using org.acplt.oncrpc; 9 | 10 | namespace NFSLibrary.Protocols.V3.RPC 11 | { 12 | public class ResultObject : XdrAble 13 | { 14 | private NFSStats _status; 15 | private O _resok; 16 | private F _resfail; 17 | 18 | public ResultObject() 19 | { } 20 | 21 | public ResultObject(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | xdr.xdrEncodeInt((int)this._status); 27 | 28 | switch (this._status) 29 | { 30 | case NFSStats.NFS_OK: 31 | ((XdrAble)this._resok).xdrEncode(xdr); 32 | break; 33 | default: 34 | ((XdrAble)this._resfail).xdrEncode(xdr); 35 | break; 36 | } 37 | } 38 | 39 | public void xdrDecode(XdrDecodingStream xdr) 40 | { 41 | this._status = (NFSStats)xdr.xdrDecodeInt(); 42 | 43 | switch (this._status) 44 | { 45 | case NFSStats.NFS_OK: 46 | Type OK = typeof(O); 47 | 48 | this._resok = (O)Activator.CreateInstance(OK, new object[] {xdr}); 49 | break; 50 | default: 51 | Type FAIL = typeof(F); 52 | 53 | this._resfail = (F)Activator.CreateInstance(FAIL, new object[] { xdr }); 54 | break; 55 | } 56 | } 57 | 58 | public NFSStats Status 59 | { 60 | get 61 | { return this._status; } 62 | } 63 | 64 | public O OK 65 | { 66 | get 67 | { return this._resok; } 68 | } 69 | 70 | public F FAIL 71 | { 72 | get 73 | { return this._resfail; } 74 | } 75 | } 76 | // End of FSSTAT3res.cs 77 | } -------------------------------------------------------------------------------- /NFSClient/IPAddressControlDesigner.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2007 Michael Chapman 2 | 3 | // Permission is hereby granted, free of charge, to any person obtaining 4 | // a copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to 8 | // permit persons to whom the Software is furnished to do so, subject to 9 | // the following conditions: 10 | 11 | // The above copyright notice and this permission notice shall be 12 | // included in all copies or substantial portions of the Software. 13 | 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | 23 | using System; 24 | using System.Collections; 25 | using System.Windows.Forms.Design; 26 | using System.Windows.Forms.Design.Behavior; 27 | 28 | namespace NFSClient 29 | { 30 | class IPAddressControlDesigner : ControlDesigner 31 | { 32 | public override SelectionRules SelectionRules 33 | { 34 | get 35 | { 36 | if ( Control.AutoSize ) 37 | { 38 | return SelectionRules.Moveable | SelectionRules.Visible; 39 | } 40 | else 41 | { 42 | return SelectionRules.AllSizeable | SelectionRules.Moveable | SelectionRules.Visible; 43 | } 44 | } 45 | } 46 | 47 | public override IList SnapLines 48 | { 49 | get 50 | { 51 | IPAddressControl control = (IPAddressControl)Control; 52 | 53 | IList snapLines = base.SnapLines; 54 | 55 | snapLines.Add( new SnapLine( SnapLineType.Baseline, control.Baseline ) ); 56 | 57 | return snapLines; 58 | } 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/Entry.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class Entry : XdrAble 12 | { 13 | private long _fileid; 14 | private Name _name; 15 | private NFSCookie _cookie; 16 | private Entry _nextentry; 17 | 18 | public Entry() 19 | { } 20 | 21 | public Entry(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | Entry _this = this; 27 | 28 | do 29 | { 30 | xdr.xdrEncodeLong(_this._fileid); 31 | 32 | _this._name.xdrEncode(xdr); 33 | _this._cookie.xdrEncode(xdr); 34 | _this = _this._nextentry; 35 | 36 | xdr.xdrEncodeBoolean(_this != null); 37 | } while (_this != null); 38 | } 39 | 40 | public void xdrDecode(XdrDecodingStream xdr) 41 | { 42 | Entry _this = this; 43 | Entry _next; 44 | 45 | do 46 | { 47 | _this._fileid = xdr.xdrDecodeLong(); 48 | _this._name = new Name(xdr); 49 | _this._cookie = new NFSCookie(xdr); 50 | _next = xdr.xdrDecodeBoolean() ? new Entry() : null; 51 | _this._nextentry = _next; 52 | _this = _next; 53 | } while (_this != null); 54 | } 55 | 56 | public long FileID 57 | { 58 | get 59 | { return this._fileid; } 60 | } 61 | 62 | public Name Name 63 | { 64 | get 65 | { return this._name; } 66 | } 67 | 68 | public NFSCookie Cookie 69 | { 70 | get 71 | { return this._cookie; } 72 | } 73 | 74 | public Entry NextEntry 75 | { 76 | get 77 | { return this._nextentry; } 78 | } 79 | } 80 | // End of entry3.cs 81 | } 82 | -------------------------------------------------------------------------------- /NekoDrive/Controls/IPAddressControlDesigner.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2007 Michael Chapman 2 | 3 | // Permission is hereby granted, free of charge, to any person obtaining 4 | // a copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to 8 | // permit persons to whom the Software is furnished to do so, subject to 9 | // the following conditions: 10 | 11 | // The above copyright notice and this permission notice shall be 12 | // included in all copies or substantial portions of the Software. 13 | 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | 23 | using System; 24 | using System.Collections; 25 | using System.Windows.Forms.Design; 26 | using System.Windows.Forms.Design.Behavior; 27 | 28 | namespace NekoDrive.Controls 29 | { 30 | class IPAddressControlDesigner : ControlDesigner 31 | { 32 | public override SelectionRules SelectionRules 33 | { 34 | get 35 | { 36 | if ( Control.AutoSize ) 37 | { 38 | return SelectionRules.Moveable | SelectionRules.Visible; 39 | } 40 | else 41 | { 42 | return SelectionRules.AllSizeable | SelectionRules.Moveable | SelectionRules.Visible; 43 | } 44 | } 45 | } 46 | 47 | public override IList SnapLines 48 | { 49 | get 50 | { 51 | IPAddressControl control = (IPAddressControl)Control; 52 | 53 | IList snapLines = base.SnapLines; 54 | 55 | snapLines.Add( new SnapLine( SnapLineType.Baseline, control.Baseline ) ); 56 | 57 | return snapLines; 58 | } 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ReadFolderArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ReadFolderArguments : XdrAble 12 | { 13 | private NFSHandle _item; 14 | private NFSCookie _cookie; 15 | private byte[] _cookieverf; 16 | private int _count; 17 | 18 | public ReadFolderArguments() 19 | { } 20 | 21 | public ReadFolderArguments(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | this._item.xdrEncode(xdr); 27 | this._cookie.xdrEncode(xdr); 28 | 29 | xdr.xdrEncodeOpaque(this._cookieverf, NFSv3Protocol.NFS3_COOKIEVERFSIZE); 30 | xdr.xdrEncodeInt(this._count); 31 | } 32 | 33 | public void xdrDecode(XdrDecodingStream xdr) 34 | { 35 | this._item = new NFSHandle(); 36 | this._item.Version = V3.RPC.NFSv3Protocol.NFS_V3; 37 | this._item.xdrDecode(xdr); 38 | this._cookie = new NFSCookie(xdr); 39 | this._cookieverf = xdr.xdrDecodeOpaque(NFSv3Protocol.NFS3_COOKIEVERFSIZE); 40 | this._count = xdr.xdrDecodeInt(); 41 | } 42 | 43 | public NFSHandle HandleObject 44 | { 45 | get 46 | { return this._item; } 47 | set 48 | { this._item = value; } 49 | } 50 | 51 | public NFSCookie Cookie 52 | { 53 | get 54 | { return this._cookie; } 55 | set 56 | { this._cookie = value; } 57 | } 58 | 59 | public byte[] CookieData 60 | { 61 | get 62 | { return this._cookieverf; } 63 | set 64 | { this._cookieverf = value; } 65 | } 66 | 67 | public int Count 68 | { 69 | get 70 | { return this._count; } 71 | set 72 | { this._count = value; } 73 | } 74 | } 75 | // End of READDIR3args.cs 76 | } -------------------------------------------------------------------------------- /RPC_NFS/NFSv3MountProtocol: -------------------------------------------------------------------------------- 1 | #define MNTPATHLEN 1024 /* Maximum bytes in a path name */ 2 | #define MNTNAMLEN 255 /* Maximum bytes in a name */ 3 | #define FHSIZE3 64 /* Maximum bytes in a V3 file handle */ 4 | 5 | struct fhandle3 { 6 | opaque data; 7 | }; 8 | 9 | typedef string dirpath; 10 | typedef string name; 11 | 12 | enum mountstat3 { 13 | MNT3_OK = 0, /* no error */ 14 | MNT3ERR_PERM = 1, /* Not owner */ 15 | MNT3ERR_NOENT = 2, /* No such file or directory */ 16 | MNT3ERR_IO = 5, /* I/O error */ 17 | MNT3ERR_ACCES = 13, /* Permission denied */ 18 | MNT3ERR_NOTDIR = 20, /* Not a directory */ 19 | MNT3ERR_INVAL = 22, /* Invalid argument */ 20 | MNT3ERR_NAMETOOLONG = 63, /* Filename too long */ 21 | MNT3ERR_NOTSUPP = 10004, /* Operation not supported */ 22 | MNT3ERR_SERVERFAULT = 10006 /* A failure on the server */ 23 | }; 24 | 25 | 26 | struct mountres3_ok { 27 | fhandle3 fhandle; 28 | int auth_flavors<>; 29 | }; 30 | 31 | union mountres3 switch (mountstat3 fhs_status) { 32 | case MNT3_OK: 33 | mountres3_ok mountinfo; 34 | default: 35 | void; 36 | }; 37 | 38 | 39 | typedef struct mountbody *mountlist; 40 | 41 | struct mountbody { 42 | name ml_hostname; 43 | dirpath ml_directory; 44 | mountlist ml_next; 45 | }; 46 | 47 | 48 | typedef struct groupnode *groups; 49 | 50 | struct groupnode { 51 | name gr_name; 52 | groups gr_next; 53 | }; 54 | 55 | typedef struct exportnode *exports; 56 | 57 | struct exportnode { 58 | dirpath ex_dir; 59 | groups ex_groups; 60 | exports ex_next; 61 | }; 62 | 63 | 64 | program MOUNT_PROGRAM { 65 | version MOUNT_V3 { 66 | void MOUNTPROC3_NULL(void) = 0; 67 | mountres3 MOUNTPROC3_MNT(dirpath) = 1; 68 | mountlist MOUNTPROC3_DUMP(void) = 2; 69 | void MOUNTPROC3_UMNT(dirpath) = 3; 70 | void MOUNTPROC3_UMNTALL(void) = 4; 71 | exports MOUNTPROC3_EXPORT(void) = 5; 72 | } = 3; 73 | } = 100005; -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/Entry.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class Entry : XdrAble 12 | { 13 | private int _fileid; /* fileid is not long on on NFSV1&NFSV2. this value is long NFSV3 and later... */ 14 | private Name _name; 15 | private NFSCookie _cookie; 16 | private Entry _nextentry; 17 | 18 | public Entry() 19 | { } 20 | 21 | public Entry(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | Entry _this = this; 27 | 28 | do 29 | { 30 | xdr.xdrEncodeInt(_this._fileid); 31 | 32 | _this._name.xdrEncode(xdr); 33 | _this._cookie.xdrEncode(xdr); 34 | _this = _this._nextentry; 35 | 36 | xdr.xdrEncodeBoolean(_this != null); 37 | } while (_this != null); 38 | } 39 | 40 | public void xdrDecode(XdrDecodingStream xdr) 41 | { 42 | Entry _this = this; 43 | Entry _next; 44 | 45 | do 46 | { 47 | _this._fileid = xdr.xdrDecodeInt(); 48 | _this._name = new Name(xdr); 49 | _this._cookie = new NFSCookie(xdr); 50 | _next = xdr.xdrDecodeBoolean() ? new Entry() : null; 51 | _this._nextentry = _next; 52 | _this = _next; 53 | } while (_this != null); 54 | } 55 | 56 | public int FileID 57 | { 58 | get 59 | { return this._fileid; } 60 | } 61 | 62 | public Name Name 63 | { 64 | get 65 | { return this._name; } 66 | } 67 | 68 | public NFSCookie Cookie 69 | { 70 | get 71 | { return this._cookie; } 72 | } 73 | 74 | public Entry NextEntry 75 | { 76 | get 77 | { return this._nextentry; } 78 | } 79 | } 80 | // End of entry.cs 81 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/RenameStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class RenameAccessOK : XdrAble 12 | { 13 | private WritingData _fromdir_wcc; 14 | private WritingData _todir_wcc; 15 | 16 | public RenameAccessOK() 17 | { } 18 | 19 | public RenameAccessOK(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._fromdir_wcc.xdrEncode(xdr); 25 | this._todir_wcc.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._fromdir_wcc = new WritingData(xdr); 31 | this._todir_wcc = new WritingData(xdr); 32 | } 33 | 34 | public WritingData From 35 | { 36 | get 37 | { return this._fromdir_wcc; } 38 | } 39 | 40 | public WritingData To 41 | { 42 | get 43 | { return this._todir_wcc; } 44 | } 45 | } 46 | 47 | public class RenameAccessFAIL : XdrAble 48 | { 49 | private WritingData _fromdir_wcc; 50 | private WritingData _todir_wcc; 51 | 52 | public RenameAccessFAIL() 53 | { } 54 | 55 | public RenameAccessFAIL(XdrDecodingStream xdr) 56 | { xdrDecode(xdr); } 57 | 58 | public void xdrEncode(XdrEncodingStream xdr) 59 | { 60 | this._fromdir_wcc.xdrEncode(xdr); 61 | this._todir_wcc.xdrEncode(xdr); 62 | } 63 | 64 | public void xdrDecode(XdrDecodingStream xdr) 65 | { 66 | this._fromdir_wcc = new WritingData(xdr); 67 | this._todir_wcc = new WritingData(xdr); 68 | } 69 | 70 | public WritingData From 71 | { 72 | get 73 | { return this._fromdir_wcc; } 74 | } 75 | 76 | public WritingData To 77 | { 78 | get 79 | { return this._todir_wcc; } 80 | } 81 | } 82 | // End of WRITE3res.cs 83 | } -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/OncRpcAuthConstants.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants related to authentication and generally usefull 29 | /// for ONC/RPC. 30 | /// 31 | /// 32 | /// A collection of constants related to authentication and generally usefull 33 | /// for ONC/RPC. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:40 $ $State: Exp $ $Locker: $ 37 | /// 38 | /// Harald Albrecht 39 | /// Jay Walters 40 | public class OncRpcAuthConstants 41 | { 42 | /// Maximum length of opaque authentication information. 43 | /// Maximum length of opaque authentication information. 44 | public const int ONCRPC_MAX_AUTH_BYTES = 400; 45 | 46 | /// Maximum length of machine name. 47 | /// Maximum length of machine name. 48 | public const int ONCRPC_MAX_MACHINE_NAME = 255; 49 | 50 | /// Maximum allowed number of groups. 51 | /// Maximum allowed number of groups. 52 | public const int ONCRPC_MAX_GROUPS = 16; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/OncRpcAuthConstants.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants related to authentication and generally usefull 29 | /// for ONC/RPC. 30 | /// 31 | /// 32 | /// A collection of constants related to authentication and generally usefull 33 | /// for ONC/RPC. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:40 $ $State: Exp $ $Locker: $ 37 | /// 38 | /// Harald Albrecht 39 | /// Jay Walters 40 | public class OncRpcAuthConstants 41 | { 42 | /// Maximum length of opaque authentication information. 43 | /// Maximum length of opaque authentication information. 44 | public const int ONCRPC_MAX_AUTH_BYTES = 400; 45 | 46 | /// Maximum length of machine name. 47 | /// Maximum length of machine name. 48 | public const int ONCRPC_MAX_MACHINE_NAME = 255; 49 | 50 | /// Maximum allowed number of groups. 51 | /// Maximum allowed number of groups. 52 | public const int ONCRPC_MAX_GROUPS = 16; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/SymlinkArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class SymlinkArguments : XdrAble 12 | { 13 | private ItemOperationArguments _where; 14 | private SymlinkData _symlink; 15 | 16 | public SymlinkArguments() 17 | { } 18 | 19 | public SymlinkArguments(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._where.xdrEncode(xdr); 25 | this._symlink.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._where = new ItemOperationArguments(xdr); 31 | this._symlink = new SymlinkData(xdr); 32 | } 33 | 34 | public ItemOperationArguments Where 35 | { 36 | get 37 | { return this._where; } 38 | } 39 | 40 | public SymlinkData Symlink 41 | { 42 | get 43 | { return this._symlink; } 44 | } 45 | } 46 | 47 | public class SymlinkData : XdrAble 48 | { 49 | private MakeAttributes _symlink_attributes; 50 | private Name _symlink_data; 51 | 52 | public SymlinkData() 53 | { } 54 | 55 | public SymlinkData(XdrDecodingStream xdr) 56 | { xdrDecode(xdr); } 57 | 58 | public void xdrEncode(XdrEncodingStream xdr) 59 | { 60 | this._symlink_attributes.xdrEncode(xdr); 61 | this._symlink_data.xdrEncode(xdr); 62 | } 63 | 64 | public void xdrDecode(XdrDecodingStream xdr) 65 | { 66 | this._symlink_attributes = new MakeAttributes(xdr); 67 | this._symlink_data = new Name(xdr); 68 | } 69 | 70 | public MakeAttributes Attributes 71 | { 72 | get 73 | { return this._symlink_attributes; } 74 | } 75 | 76 | public Name Name 77 | { 78 | get 79 | { return this._symlink_data; } 80 | } 81 | } 82 | // End of SYMLINK3args.cs 83 | } -------------------------------------------------------------------------------- /NFSClient/IPAddressControl.designer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2007 Michael Chapman 2 | 3 | // Permission is hereby granted, free of charge, to any person obtaining 4 | // a copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to 8 | // permit persons to whom the Software is furnished to do so, subject to 9 | // the following conditions: 10 | 11 | // The above copyright notice and this permission notice shall be 12 | // included in all copies or substantial portions of the Software. 13 | 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | 23 | namespace NFSClient 24 | { 25 | partial class IPAddressControl 26 | { 27 | /// 28 | /// Required designer variable. 29 | /// 30 | private System.ComponentModel.IContainer components = null; 31 | 32 | /// 33 | /// Clean up any resources being used. 34 | /// 35 | /// true if managed resources should be disposed; otherwise, false. 36 | protected override void Dispose( bool disposing ) 37 | { 38 | if ( disposing && ( components != null ) ) 39 | { 40 | components.Dispose(); 41 | } 42 | base.Dispose( disposing ); 43 | } 44 | 45 | #region Component Designer generated code 46 | 47 | /// 48 | /// Required method for Designer support - do not modify 49 | /// the contents of this method with the code editor. 50 | /// 51 | private void InitializeComponent() 52 | { 53 | components = new System.ComponentModel.Container(); 54 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 55 | } 56 | 57 | #endregion 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/OncRpcTimeoutException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// The class OncRpcTimeoutException indicates a timed out 29 | /// call exception. 30 | /// 31 | /// 32 | /// The class OncRpcTimeoutException indicates a timed out 33 | /// call exception. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// $Revision: 1.2 $ $Date: 2005/11/11 21:05:00 $ $State: Exp $ $Locker: $ 37 | /// Harald Albrecht 38 | /// Jay Walters 39 | [System.Serializable] 40 | public class OncRpcTimeoutException : OncRpcException 41 | { 42 | /// Defines the serial version UID for OncRpcTimeoutException. 43 | /// Defines the serial version UID for OncRpcTimeoutException. 44 | private const long serialVersionUID = 2777518173161399732L; 45 | 46 | /// 47 | /// Initializes an OncRpcTimeoutException 48 | /// with a detail of 49 | /// OncRpcException.RPC_TIMEDOUT 50 | /// . 51 | /// 52 | public OncRpcTimeoutException() : base(RPC_TIMEDOUT) 53 | { 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/NFSv3Protocol.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | /** 7 | * A collection of constants used by the "NFSv3Protocol" ONC/RPC program. 8 | */ 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class NFSv3Protocol 12 | { 13 | public const int NFS_PROGRAM = 100003; 14 | public const int NFS_V3 = 3; 15 | 16 | public const int ACCESS3_READ = 0x0001; 17 | public const int ACCESS3_LOOKUP = 0x0002; 18 | public const int ACCESS3_MODIFY = 0x0004; 19 | public const int ACCESS3_EXTEND = 0x0008; 20 | public const int ACCESS3_DELETE = 0x0010; 21 | public const int ACCESS3_EXECUTE = 0x0020; 22 | 23 | public const int NFSPROC3_NULL = 0; 24 | public const int NFSPROC3_GETATTR = 1; 25 | public const int NFSPROC3_SETATTR = 2; 26 | public const int NFSPROC3_LOOKUP = 3; 27 | public const int NFSPROC3_ACCESS = 4; 28 | public const int NFSPROC3_READLINK = 5; 29 | public const int NFSPROC3_READ = 6; 30 | public const int NFSPROC3_WRITE = 7; 31 | public const int NFSPROC3_CREATE = 8; 32 | public const int NFSPROC3_MKDIR = 9; 33 | public const int NFSPROC3_SYMLINK = 10; 34 | public const int NFSPROC3_MKNOD = 11; 35 | public const int NFSPROC3_REMOVE = 12; 36 | public const int NFSPROC3_RMDIR = 13; 37 | public const int NFSPROC3_RENAME = 14; 38 | public const int NFSPROC3_LINK = 15; 39 | public const int NFSPROC3_READDIR = 16; 40 | public const int NFSPROC3_READDIRPLUS = 17; 41 | public const int NFSPROC3_FSSTAT = 18; 42 | public const int NFSPROC3_FSINFO = 19; 43 | public const int NFSPROC3_PATHCONF = 20; 44 | public const int NFSPROC3_COMMIT = 21; 45 | 46 | public const int FSF3_LINK = 0x0001; 47 | public const int FSF3_SYMLINK = 0x0002; 48 | public const int FSF3_HOMOGENEOUS = 0x0008; 49 | public const int FSF3_CANSETTIME = 0x0010; 50 | 51 | public const int NFS3_COOKIEVERFSIZE = 8; 52 | public const int NFS3_WRITEVERFSIZE = 8; 53 | public const int NFS3_CREATEVERFSIZE = 8; 54 | public const int NFS3_FHSIZE = 64; 55 | } 56 | // End of NFSv3Protocol.cs 57 | } -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/OncRpcTimeoutException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// The class OncRpcTimeoutException indicates a timed out 29 | /// call exception. 30 | /// 31 | /// 32 | /// The class OncRpcTimeoutException indicates a timed out 33 | /// call exception. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// $Revision: 1.2 $ $Date: 2005/11/11 21:05:00 $ $State: Exp $ $Locker: $ 37 | /// Harald Albrecht 38 | /// Jay Walters 39 | [System.Serializable] 40 | public class OncRpcTimeoutException : OncRpcException 41 | { 42 | /// Defines the serial version UID for OncRpcTimeoutException. 43 | /// Defines the serial version UID for OncRpcTimeoutException. 44 | private const long serialVersionUID = 2777518173161399732L; 45 | 46 | /// 47 | /// Initializes an OncRpcTimeoutException 48 | /// with a detail of 49 | /// OncRpcException.RPC_TIMEDOUT 50 | /// . 51 | /// 52 | public OncRpcTimeoutException() : base(RPC_TIMEDOUT) 53 | { 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/SymlinkStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class SymlinkAccessOK : XdrAble 12 | { 13 | private NFSHandle _obj; 14 | private PostOperationAttributes _obj_attributes; 15 | private WritingData _dir_wcc; 16 | 17 | public SymlinkAccessOK() 18 | { } 19 | 20 | public SymlinkAccessOK(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._obj.xdrEncode(xdr); 26 | this._obj_attributes.xdrEncode(xdr); 27 | this._dir_wcc.xdrEncode(xdr); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._obj = new NFSHandle(); 33 | this._obj.Version = V3.RPC.NFSv3Protocol.NFS_V3; 34 | this._obj.xdrDecode(xdr); 35 | this._obj_attributes = new PostOperationAttributes(xdr); 36 | this._dir_wcc = new WritingData(xdr); 37 | } 38 | 39 | public NFSHandle Handle 40 | { 41 | get 42 | { return this._obj; } 43 | } 44 | 45 | public PostOperationAttributes Attributes 46 | { 47 | get 48 | { return this._obj_attributes; } 49 | } 50 | 51 | public WritingData Data 52 | { 53 | get 54 | { return this._dir_wcc; } 55 | } 56 | } 57 | 58 | public class SymlinkAccessFAIL : XdrAble 59 | { 60 | private WritingData _dir_wcc; 61 | 62 | public SymlinkAccessFAIL() 63 | { } 64 | 65 | public SymlinkAccessFAIL(XdrDecodingStream xdr) 66 | { xdrDecode(xdr); } 67 | 68 | public void xdrEncode(XdrEncodingStream xdr) 69 | { this._dir_wcc.xdrEncode(xdr); } 70 | 71 | public void xdrDecode(XdrDecodingStream xdr) 72 | { this._dir_wcc = new WritingData(xdr); } 73 | 74 | public WritingData Data 75 | { 76 | get 77 | { return this._dir_wcc; } 78 | } 79 | } 80 | // End of SYMLINK3res.cs 81 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/MakeFileStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class MakeFileAccessOK : XdrAble 12 | { 13 | private NFSHandle _handle; 14 | private PostOperationAttributes _attributes; 15 | private WritingData _dir_wcc; 16 | 17 | public MakeFileAccessOK() 18 | { } 19 | 20 | public MakeFileAccessOK(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._handle.xdrEncode(xdr); 26 | this._attributes.xdrEncode(xdr); 27 | this._dir_wcc.xdrEncode(xdr); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._handle = new NFSHandle(); 33 | this._handle.Version = V3.RPC.NFSv3Protocol.NFS_V3; 34 | this._handle.xdrDecode(xdr); 35 | this._attributes = new PostOperationAttributes(xdr); 36 | this._dir_wcc = new WritingData(xdr); 37 | } 38 | 39 | public NFSHandle Handle 40 | { 41 | get 42 | { return this._handle; } 43 | } 44 | 45 | public PostOperationAttributes Attributes 46 | { 47 | get 48 | { return this._attributes; } 49 | } 50 | 51 | public WritingData Data 52 | { 53 | get 54 | { return this._dir_wcc; } 55 | } 56 | } 57 | 58 | public class MakeFileAccessFAIL : XdrAble 59 | { 60 | private WritingData _dir_wcc; 61 | 62 | public MakeFileAccessFAIL() 63 | { } 64 | 65 | public MakeFileAccessFAIL(XdrDecodingStream xdr) 66 | { xdrDecode(xdr); } 67 | 68 | public void xdrEncode(XdrEncodingStream xdr) 69 | { this._dir_wcc.xdrEncode(xdr); } 70 | 71 | public void xdrDecode(XdrDecodingStream xdr) 72 | { this._dir_wcc = new WritingData(xdr); } 73 | 74 | public WritingData Data 75 | { 76 | get 77 | { return this._dir_wcc; } 78 | } 79 | } 80 | // End of MKDIR3res.cs 81 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/MakeNodeStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class MakeNodeAccessOK : XdrAble 12 | { 13 | private NFSHandle _obj; 14 | private PostOperationAttributes _obj_attributes; 15 | private WritingData _dir_wcc; 16 | 17 | public MakeNodeAccessOK() 18 | { } 19 | 20 | public MakeNodeAccessOK(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._obj.xdrEncode(xdr); 26 | this._obj_attributes.xdrEncode(xdr); 27 | this._dir_wcc.xdrEncode(xdr); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._obj = new NFSHandle(); 33 | this._obj.Version = V3.RPC.NFSv3Protocol.NFS_V3; 34 | this._obj.xdrDecode(xdr); 35 | this._obj_attributes = new PostOperationAttributes(xdr); 36 | this._dir_wcc = new WritingData(xdr); 37 | } 38 | 39 | public NFSHandle Handle 40 | { 41 | get 42 | { return this._obj; } 43 | } 44 | 45 | public PostOperationAttributes Attributes 46 | { 47 | get 48 | { return this._obj_attributes; } 49 | } 50 | 51 | public WritingData Data 52 | { 53 | get 54 | { return this._dir_wcc; } 55 | } 56 | } 57 | 58 | public class MakeNodeAccessFAIL : XdrAble 59 | { 60 | private WritingData _dir_wcc; 61 | 62 | public MakeNodeAccessFAIL() 63 | { } 64 | 65 | public MakeNodeAccessFAIL(XdrDecodingStream xdr) 66 | { xdrDecode(xdr); } 67 | 68 | public void xdrEncode(XdrEncodingStream xdr) 69 | { this._dir_wcc.xdrEncode(xdr); } 70 | 71 | public void xdrDecode(XdrDecodingStream xdr) 72 | { this._dir_wcc = new WritingData(xdr); } 73 | 74 | public WritingData Data 75 | { 76 | get 77 | { return this._dir_wcc; } 78 | } 79 | } 80 | // End of MKNOD3res.cs 81 | } -------------------------------------------------------------------------------- /NekoDrive/Controls/IPAddressControl.designer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2007 Michael Chapman 2 | 3 | // Permission is hereby granted, free of charge, to any person obtaining 4 | // a copy of this software and associated documentation files (the 5 | // "Software"), to deal in the Software without restriction, including 6 | // without limitation the rights to use, copy, modify, merge, publish, 7 | // distribute, sublicense, and/or sell copies of the Software, and to 8 | // permit persons to whom the Software is furnished to do so, subject to 9 | // the following conditions: 10 | 11 | // The above copyright notice and this permission notice shall be 12 | // included in all copies or substantial portions of the Software. 13 | 14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 18 | // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 20 | // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | 23 | namespace NekoDrive.Controls 24 | { 25 | partial class IPAddressControl 26 | { 27 | /// 28 | /// Required designer variable. 29 | /// 30 | private System.ComponentModel.IContainer components = null; 31 | 32 | /// 33 | /// Clean up any resources being used. 34 | /// 35 | /// true if managed resources should be disposed; otherwise, false. 36 | protected override void Dispose( bool disposing ) 37 | { 38 | if ( disposing && ( components != null ) ) 39 | { 40 | components.Dispose(); 41 | } 42 | base.Dispose( disposing ); 43 | } 44 | 45 | #region Component Designer generated code 46 | 47 | /// 48 | /// Required method for Designer support - do not modify 49 | /// the contents of this method with the code editor. 50 | /// 51 | private void InitializeComponent() 52 | { 53 | components = new System.ComponentModel.Container(); 54 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 55 | } 56 | 57 | #endregion 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/SetAttributeArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class SetAttributeArguments : XdrAble 12 | { 13 | private NFSHandle _obj; 14 | private MakeAttributes _new_attributes; 15 | private bool _guardcheck; 16 | private NFSTimeValue _guardctime; 17 | 18 | public SetAttributeArguments() 19 | { } 20 | 21 | public SetAttributeArguments(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | this._obj.xdrEncode(xdr); 27 | this._new_attributes.xdrEncode(xdr); 28 | xdr.xdrEncodeBoolean(this._guardcheck); 29 | if (this._guardcheck) 30 | { this._guardctime.xdrEncode(xdr); } 31 | } 32 | 33 | public void xdrDecode(XdrDecodingStream xdr) 34 | { 35 | this._obj = new NFSHandle(); 36 | this._obj.Version = V3.RPC.NFSv3Protocol.NFS_V3; 37 | this._obj.xdrDecode(xdr); 38 | this._new_attributes = new MakeAttributes(xdr); 39 | this._guardcheck = xdr.xdrDecodeBoolean(); 40 | if (this._guardcheck) 41 | { this._guardctime = new NFSTimeValue(xdr); } 42 | } 43 | 44 | public NFSHandle Handle 45 | { 46 | get 47 | { return this._obj; } 48 | set 49 | { this._obj = value; } 50 | } 51 | 52 | public MakeAttributes Attributes 53 | { 54 | get 55 | { return this._new_attributes; } 56 | set 57 | { this._new_attributes = value; } 58 | } 59 | 60 | public bool GuardCheck 61 | { 62 | get 63 | { return this._guardcheck; } 64 | set 65 | { this._guardcheck = value; } 66 | } 67 | 68 | public NFSTimeValue GuardCreateTime 69 | { 70 | get 71 | { return this._guardctime; } 72 | set 73 | { this._guardctime = value; } 74 | } 75 | } 76 | // End of SETATTR3args.cs 77 | } -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/OncRpcReplyStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants used to identify the (overall) status of an 29 | /// ONC/RPC reply message. 30 | /// 31 | /// 32 | /// A collection of constants used to identify the (overall) status of an 33 | /// ONC/RPC reply message. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:41 $ $State: Exp $ $Locker: $ 37 | /// 38 | /// Harald Albrecht 39 | /// Jay Walters 40 | public class OncRpcReplyStatus 41 | { 42 | /// 43 | /// Reply status identifying that the corresponding message call was 44 | /// accepted. 45 | /// 46 | /// 47 | /// Reply status identifying that the corresponding message call was 48 | /// accepted. 49 | /// 50 | public const int ONCRPC_MSG_ACCEPTED = 0; 51 | 52 | /// 53 | /// Reply status identifying that the corresponding message call was 54 | /// denied. 55 | /// 56 | /// 57 | /// Reply status identifying that the corresponding message call was 58 | /// denied. 59 | /// 60 | public const int ONCRPC_MSG_DENIED = 1; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/OncRpcReplyStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants used to identify the (overall) status of an 29 | /// ONC/RPC reply message. 30 | /// 31 | /// 32 | /// A collection of constants used to identify the (overall) status of an 33 | /// ONC/RPC reply message. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:41 $ $State: Exp $ $Locker: $ 37 | /// 38 | /// Harald Albrecht 39 | /// Jay Walters 40 | public class OncRpcReplyStatus 41 | { 42 | /// 43 | /// Reply status identifying that the corresponding message call was 44 | /// accepted. 45 | /// 46 | /// 47 | /// Reply status identifying that the corresponding message call was 48 | /// accepted. 49 | /// 50 | public const int ONCRPC_MSG_ACCEPTED = 0; 51 | 52 | /// 53 | /// Reply status identifying that the corresponding message call was 54 | /// denied. 55 | /// 56 | /// 57 | /// Reply status identifying that the corresponding message call was 58 | /// denied. 59 | /// 60 | public const int ONCRPC_MSG_DENIED = 1; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/LinkStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class LinkAccessOK : XdrAble 12 | { 13 | private PostOperationAttributes _file_attributes; 14 | private WritingData _linkdir_wcc; 15 | 16 | public LinkAccessOK() 17 | { } 18 | 19 | public LinkAccessOK(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | this._file_attributes.xdrEncode(xdr); 25 | this._linkdir_wcc.xdrEncode(xdr); 26 | } 27 | 28 | public void xdrDecode(XdrDecodingStream xdr) 29 | { 30 | this._file_attributes = new PostOperationAttributes(xdr); 31 | this._linkdir_wcc = new WritingData(xdr); 32 | } 33 | 34 | public PostOperationAttributes Attributes 35 | { 36 | get 37 | { return this._file_attributes; } 38 | } 39 | 40 | public WritingData Data 41 | { 42 | get 43 | { return this._linkdir_wcc; } 44 | } 45 | } 46 | 47 | public class LinkAccessFAIL : XdrAble 48 | { 49 | private PostOperationAttributes _file_attributes; 50 | private WritingData _linkdir_wcc; 51 | 52 | public LinkAccessFAIL() 53 | { } 54 | 55 | public LinkAccessFAIL(XdrDecodingStream xdr) 56 | { xdrDecode(xdr); } 57 | 58 | public void xdrEncode(XdrEncodingStream xdr) 59 | { 60 | this._file_attributes.xdrEncode(xdr); 61 | this._linkdir_wcc.xdrEncode(xdr); 62 | } 63 | 64 | public void xdrDecode(XdrDecodingStream xdr) 65 | { 66 | this._file_attributes = new PostOperationAttributes(xdr); 67 | this._linkdir_wcc = new WritingData(xdr); 68 | } 69 | 70 | public PostOperationAttributes Attributes 71 | { 72 | get 73 | { return this._file_attributes; } 74 | } 75 | 76 | public WritingData Data 77 | { 78 | get 79 | { return this._linkdir_wcc; } 80 | } 81 | } 82 | // End of LINK3res.cs 83 | } -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/OncRpcBroadcastListener.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// The listener class for 29 | /// receiving 30 | /// ONC/RPC broadcast reply events 31 | /// . 32 | /// Converted to C# using the db4o Sharpen tool. 33 | /// 34 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:40 $ $State: Exp $ $Locker: $ 35 | /// 36 | /// Harald Albrecht 37 | /// Jay Walters 38 | public interface OncRpcBroadcastListener 39 | { 40 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 41 | /// 42 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 43 | ///

Please note that you should not spend too much time when handling 44 | /// broadcast events, otherwise you'll probably miss some of the incomming 45 | /// replies. Because most operating systems will not buffer large amount 46 | /// of incomming UDP/IP datagramms for a given socket, you will experience 47 | /// packet drops when you stay too long in the processing stage. 48 | /// 49 | /// OncRpcBroadcastEvent 50 | void replyReceived(org.acplt.oncrpc.OncRpcBroadcastEvent evt); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/OncRpcBroadcastListener.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | ///

28 | /// The listener class for 29 | /// receiving 30 | /// ONC/RPC broadcast reply events 31 | /// . 32 | /// Converted to C# using the db4o Sharpen tool. 33 | /// 34 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:40 $ $State: Exp $ $Locker: $ 35 | /// 36 | /// Harald Albrecht 37 | /// Jay Walters 38 | public interface OncRpcBroadcastListener 39 | { 40 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 41 | /// 42 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 43 | ///

Please note that you should not spend too much time when handling 44 | /// broadcast events, otherwise you'll probably miss some of the incomming 45 | /// replies. Because most operating systems will not buffer large amount 46 | /// of incomming UDP/IP datagramms for a given socket, you will experience 47 | /// packet drops when you stay too long in the processing stage. 48 | /// 49 | /// OncRpcBroadcastEvent 50 | void replyReceived(org.acplt.oncrpc.OncRpcBroadcastEvent evt); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/Commons/Exports.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using org.acplt.oncrpc; 7 | 8 | namespace NFSLibrary.Protocols.Commons 9 | { 10 | public class Exports : XdrAble 11 | { 12 | private ExportNode _value; 13 | 14 | public Exports() 15 | { } 16 | 17 | public Exports(ExportNode value) 18 | { this._value = value; } 19 | 20 | public Exports(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | if (this._value != null) 26 | { 27 | xdr.xdrEncodeBoolean(true); 28 | this._value.xdrEncode(xdr); 29 | } 30 | else { xdr.xdrEncodeBoolean(false); }; 31 | } 32 | 33 | public void xdrDecode(XdrDecodingStream xdr) 34 | { 35 | this._value = xdr.xdrDecodeBoolean() ? new ExportNode(xdr) : null; 36 | } 37 | 38 | public ExportNode Value 39 | { 40 | get 41 | { return this._value; } 42 | } 43 | } 44 | 45 | public class ExportNode : XdrAble 46 | { 47 | private Name _mountpath; 48 | private Groups _exgroups; 49 | private Exports _next; 50 | 51 | public ExportNode() 52 | { } 53 | 54 | public ExportNode(XdrDecodingStream xdr) 55 | { xdrDecode(xdr); } 56 | 57 | public void xdrEncode(XdrEncodingStream xdr) 58 | { 59 | this._mountpath.xdrEncode(xdr); 60 | this._exgroups.xdrEncode(xdr); 61 | this._next.xdrEncode(xdr); 62 | } 63 | 64 | public void xdrDecode(XdrDecodingStream xdr) 65 | { 66 | this._mountpath = new Name(xdr); 67 | this._exgroups = new Groups(xdr); 68 | this._next = new Exports(xdr); 69 | } 70 | 71 | public Name MountPath 72 | { 73 | get 74 | { return this._mountpath; } 75 | } 76 | 77 | public Groups ExportGroups 78 | { 79 | get 80 | { return this._exgroups; } 81 | } 82 | 83 | public Exports Next 84 | { 85 | get 86 | { return this._next; } 87 | } 88 | } 89 | // End of exports.cs 90 | } -------------------------------------------------------------------------------- /jportmap/src/org/acplt/oncrpc/apps/jportmap/csportmap.cs: -------------------------------------------------------------------------------- 1 | using System.Net; 2 | using System.Net.Sockets; 3 | using System; 4 | using org.acplt.oncrpc.server; 5 | 6 | namespace org.acplt.oncrpc.apps.jportmap 7 | { 8 | ///

9 | /// The class csportmap is the command-line main 10 | /// for an ONC/RPC port mapper, speaking the widely deployed 11 | /// protocol version 2. 12 | /// 13 | /// 14 | /// The class csportmap is the command-line main 15 | /// for an ONC/RPC port mapper, speaking the widely deployed 16 | /// protocol version 2. 17 | /// 18 | /// $Revision: 1.2 $ $Date: 2003/08/14 11:26:50 $ $State: Exp $ $Locker: $ 19 | /// Jay Walters 20 | public class csportmap : jportmap 21 | { 22 | /// 23 | /// Create a new portmap instance, create the transport registration 24 | /// information and UDP and TCP-based transports, which will be bound 25 | /// later to port 111. 26 | /// 27 | /// 28 | /// Create a new portmap instance, create the transport registration 29 | /// information and UDP and TCP-based transports, which will be bound 30 | /// later to port 111. The constructor does not start the dispatcher loop. 31 | /// 32 | /// 33 | /// 34 | public csportmap() : base() 35 | { 36 | } 37 | 38 | /// Create an instance of an ONC/RPC portmapper and run it. 39 | /// 40 | /// Create an instance of an ONC/RPC portmapper and run it. As we have 41 | /// to bootstrap the ONC/RPC port information chain, we do not use the 42 | /// usual overloaded run() method without any parameters, 43 | /// but instead supply it the transports to handle. Registration and 44 | /// deregistration is not necessary and not possible. 45 | /// 46 | public static void Main(string[] args) 47 | { 48 | try 49 | { 50 | csportmap pmap = new csportmap 51 | (); 52 | pmap.run(pmap.transports); 53 | pmap.Close(pmap.transports); 54 | } 55 | catch (org.acplt.oncrpc.OncRpcException e) 56 | { 57 | Console.Out.WriteLine(e.Message); 58 | Console.Out.WriteLine(e.StackTrace); 59 | } 60 | catch (System.IO.IOException e) 61 | { 62 | Console.Out.WriteLine(e.Message); 63 | Console.Out.WriteLine(e.StackTrace); 64 | } 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/WriteArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class WriteArguments : XdrAble 12 | { 13 | private NFSHandle _file; 14 | private long _offset; 15 | private int _count; 16 | private StableHow _stable; 17 | private byte[] _data; 18 | 19 | public WriteArguments() 20 | { } 21 | 22 | public WriteArguments(XdrDecodingStream xdr) 23 | { xdrDecode(xdr); } 24 | 25 | public void xdrEncode(XdrEncodingStream xdr) 26 | { 27 | this._file.xdrEncode(xdr); 28 | xdr.xdrEncodeLong(this._offset); 29 | xdr.xdrEncodeInt(this._count); 30 | xdr.xdrEncodeInt((int)this._stable); 31 | xdr.xdrEncodeDynamicOpaque(this._data); 32 | } 33 | 34 | public void xdrDecode(XdrDecodingStream xdr) 35 | { 36 | this._file = new NFSHandle(); 37 | this._file.Version = V3.RPC.NFSv3Protocol.NFS_V3; 38 | this._file.xdrDecode(xdr); 39 | this._offset = xdr.xdrDecodeLong(); 40 | this._count = xdr.xdrDecodeInt(); 41 | this._stable = (StableHow)xdr.xdrDecodeInt(); 42 | this._data = xdr.xdrDecodeDynamicOpaque(); 43 | } 44 | 45 | public NFSHandle File 46 | { 47 | get 48 | { return this._file; } 49 | set 50 | { this._file = value; } 51 | } 52 | 53 | public long Offset 54 | { 55 | get 56 | { return this._offset; } 57 | set 58 | { this._offset = value; } 59 | } 60 | 61 | public int Count 62 | { 63 | get 64 | { return this._count; } 65 | set 66 | { this._count = value; } 67 | } 68 | 69 | public StableHow Stable 70 | { 71 | get 72 | { return this._stable; } 73 | set 74 | { this._stable = value; } 75 | } 76 | 77 | public byte[] Data 78 | { 79 | get 80 | { return this._data; } 81 | set 82 | { this._data = value; } 83 | } 84 | } 85 | // End of writeargs.cs 86 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/WriteArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class WriteArguments : XdrAble 12 | { 13 | private NFSHandle _file; 14 | private int _beginoffset; 15 | private int _offset; 16 | private int _totalcount; 17 | private byte[] _data; 18 | 19 | public WriteArguments() 20 | { } 21 | 22 | public WriteArguments(XdrDecodingStream xdr) 23 | { xdrDecode(xdr); } 24 | 25 | public void xdrEncode(XdrEncodingStream xdr) 26 | { 27 | this._file.xdrEncode(xdr); 28 | xdr.xdrEncodeInt(this._beginoffset); 29 | xdr.xdrEncodeInt(this._offset); 30 | xdr.xdrEncodeInt(this._totalcount); 31 | xdr.xdrEncodeDynamicOpaque(this._data); 32 | } 33 | 34 | public void xdrDecode(XdrDecodingStream xdr) 35 | { 36 | this._file = new NFSHandle(); 37 | this._file.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 38 | this._file.xdrDecode(xdr); 39 | this._beginoffset = xdr.xdrDecodeInt(); 40 | this._offset = xdr.xdrDecodeInt(); 41 | this._totalcount = xdr.xdrDecodeInt(); 42 | this._data = xdr.xdrDecodeDynamicOpaque(); 43 | } 44 | 45 | public NFSHandle File 46 | { 47 | get 48 | { return this._file; } 49 | set 50 | { this._file = value; } 51 | } 52 | 53 | public int Offset 54 | { 55 | get 56 | { return this._offset; } 57 | set 58 | { this._offset = value; } 59 | } 60 | 61 | public int BeginOffset 62 | { 63 | get 64 | { return this._beginoffset; } 65 | set 66 | { this._beginoffset = value; } 67 | } 68 | 69 | public int TotalCount 70 | { 71 | get 72 | { return this._totalcount; } 73 | set 74 | { this._totalcount = value; } 75 | } 76 | 77 | public byte[] Data 78 | { 79 | get 80 | { return this._data; } 81 | set 82 | { this._data = value; } 83 | } 84 | } 85 | // End of writeargs.cs 86 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ReadStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ReadAccessOK : XdrAble 12 | { 13 | private PostOperationAttributes _attributes; 14 | private int _count; 15 | private bool _eof; 16 | private byte[] _data; 17 | 18 | public ReadAccessOK() 19 | { } 20 | 21 | public ReadAccessOK(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | this._attributes.xdrEncode(xdr); 27 | xdr.xdrEncodeInt(this._count); 28 | xdr.xdrEncodeBoolean(this._eof); 29 | xdr.xdrEncodeDynamicOpaque(this._data); 30 | } 31 | 32 | public void xdrDecode(XdrDecodingStream xdr) 33 | { 34 | this._attributes = new PostOperationAttributes(xdr); 35 | this._count = xdr.xdrDecodeInt(); 36 | this._eof = xdr.xdrDecodeBoolean(); 37 | this._data = xdr.xdrDecodeDynamicOpaque(); 38 | } 39 | 40 | public PostOperationAttributes Attributes 41 | { 42 | get 43 | { return this._attributes; } 44 | } 45 | 46 | public int Count 47 | { 48 | get 49 | { return this._count; } 50 | } 51 | 52 | public bool EOF 53 | { 54 | get 55 | { return this._eof; } 56 | } 57 | 58 | public byte[] Data 59 | { 60 | get 61 | { return this._data; } 62 | } 63 | } 64 | 65 | public class ReadAccessFAIL : XdrAble 66 | { 67 | private PostOperationAttributes _attributes; 68 | 69 | public ReadAccessFAIL() 70 | { } 71 | 72 | public ReadAccessFAIL(XdrDecodingStream xdr) 73 | { xdrDecode(xdr); } 74 | 75 | public void xdrEncode(XdrEncodingStream xdr) 76 | { this._attributes.xdrEncode(xdr); } 77 | 78 | public void xdrDecode(XdrDecodingStream xdr) 79 | { this._attributes = new PostOperationAttributes(xdr); } 80 | 81 | public PostOperationAttributes Attributes 82 | { 83 | get 84 | { return this._attributes; } 85 | } 86 | } 87 | // End of readres.cs 88 | } -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/OncRpcBroadcastAdapter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// An abstract adapter class for 29 | /// receiving 30 | /// ONC/RPC broadcast reply events 31 | /// . 32 | /// The methods in this class are empty. This class exists as 33 | /// convenience for creating listener objects. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// OncRpcUdpClient 37 | /// OncRpcBroadcastAdapter 38 | /// OncRpcBroadcastListener 39 | /// OncRpcBroadcastEvent 40 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:40 $ $State: Exp $ $Locker: $ 41 | /// 42 | /// Harald Albrecht 43 | /// Jay Walters 44 | public abstract class OncRpcBroadcastAdapter : org.acplt.oncrpc.OncRpcBroadcastListener 45 | { 46 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 47 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 48 | /// OncRpcBroadcastEvent 49 | public virtual void replyReceived(org.acplt.oncrpc.OncRpcBroadcastEvent evt) 50 | { 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/OncRpcBroadcastAdapter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// An abstract adapter class for 29 | /// receiving 30 | /// ONC/RPC broadcast reply events 31 | /// . 32 | /// The methods in this class are empty. This class exists as 33 | /// convenience for creating listener objects. 34 | /// Converted to C# using the db4o Sharpen tool. 35 | /// 36 | /// OncRpcUdpClient 37 | /// OncRpcBroadcastAdapter 38 | /// OncRpcBroadcastListener 39 | /// OncRpcBroadcastEvent 40 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:40 $ $State: Exp $ $Locker: $ 41 | /// 42 | /// Harald Albrecht 43 | /// Jay Walters 44 | public abstract class OncRpcBroadcastAdapter : org.acplt.oncrpc.OncRpcBroadcastListener 45 | { 46 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 47 | /// Invoked when a reply to an ONC/RPC broadcast call is received. 48 | /// OncRpcBroadcastEvent 49 | public virtual void replyReceived(org.acplt.oncrpc.OncRpcBroadcastEvent evt) 50 | { 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ItemOperationStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ItemOperationAccessResultOK : XdrAble 12 | { 13 | private NFSHandle _obj; 14 | private PostOperationAttributes _obj_attributes; 15 | private PostOperationAttributes _dir_attributes; 16 | 17 | public ItemOperationAccessResultOK() 18 | { } 19 | 20 | public ItemOperationAccessResultOK(XdrDecodingStream xdr) 21 | { xdrDecode(xdr); } 22 | 23 | public void xdrEncode(XdrEncodingStream xdr) 24 | { 25 | this._obj.xdrEncode(xdr); 26 | this._obj_attributes.xdrEncode(xdr); 27 | this._dir_attributes.xdrEncode(xdr); 28 | } 29 | 30 | public void xdrDecode(XdrDecodingStream xdr) 31 | { 32 | this._obj = new NFSHandle(); 33 | this._obj.Version = V3.RPC.NFSv3Protocol.NFS_V3; 34 | this._obj.xdrDecode(xdr); 35 | this._obj_attributes = new PostOperationAttributes(xdr); 36 | this._dir_attributes = new PostOperationAttributes(xdr); 37 | } 38 | 39 | public NFSHandle ItemHandle 40 | { 41 | get 42 | { return this._obj; } 43 | } 44 | 45 | public PostOperationAttributes ItemAttributes 46 | { 47 | get 48 | { return this._obj_attributes; } 49 | } 50 | 51 | public PostOperationAttributes ParentAttributes 52 | { 53 | get 54 | { return this._dir_attributes; } 55 | } 56 | } 57 | 58 | public class ItemOperationAccessResultFAIL : XdrAble 59 | { 60 | private PostOperationAttributes _dir_attributes; 61 | 62 | public ItemOperationAccessResultFAIL() 63 | { } 64 | 65 | public ItemOperationAccessResultFAIL(XdrDecodingStream xdr) 66 | { xdrDecode(xdr); } 67 | 68 | public void xdrEncode(XdrEncodingStream xdr) 69 | { this._dir_attributes.xdrEncode(xdr); } 70 | 71 | public void xdrDecode(XdrDecodingStream xdr) 72 | { this._dir_attributes = new PostOperationAttributes(xdr); } 73 | 74 | public PostOperationAttributes Attributes 75 | { 76 | get 77 | { return this._dir_attributes; } 78 | } 79 | } 80 | // End of LOOKUP3res.cs 81 | } -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/OncRpcRejectStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants used to describe why a remote procedure call 29 | /// message was rejected. 30 | /// 31 | /// 32 | /// A collection of constants used to describe why a remote procedure call 33 | /// message was rejected. This constants are used in 34 | /// OncRpcReplyMessage 35 | /// objects, which represent rejected messages if their 36 | /// OncRpcReplyMessage.replyStatus 37 | /// field has the value 38 | /// OncRpcReplyStatus.ONCRPC_MSG_DENIED 39 | /// 40 | /// . 41 | /// Converted to C# using the db4o Sharpen tool. 42 | /// 43 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:41 $ $State: Exp $ $Locker: $ 44 | /// 45 | /// Harald Albrecht 46 | /// Jay Walters 47 | public class OncRpcRejectStatus 48 | { 49 | /// Wrong ONC/RPC protocol version used in call (it needs to be version 2). 50 | /// Wrong ONC/RPC protocol version used in call (it needs to be version 2). 51 | public const int ONCRPC_RPC_MISMATCH = 0; 52 | 53 | /// The remote ONC/RPC server could not authenticate the caller. 54 | /// The remote ONC/RPC server could not authenticate the caller. 55 | public const int ONCRPC_AUTH_ERROR = 1; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/OncRpcRejectStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants used to describe why a remote procedure call 29 | /// message was rejected. 30 | /// 31 | /// 32 | /// A collection of constants used to describe why a remote procedure call 33 | /// message was rejected. This constants are used in 34 | /// OncRpcReplyMessage 35 | /// objects, which represent rejected messages if their 36 | /// OncRpcReplyMessage.replyStatus 37 | /// field has the value 38 | /// OncRpcReplyStatus.ONCRPC_MSG_DENIED 39 | /// 40 | /// . 41 | /// Converted to C# using the db4o Sharpen tool. 42 | /// 43 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:41 $ $State: Exp $ $Locker: $ 44 | /// 45 | /// Harald Albrecht 46 | /// Jay Walters 47 | public class OncRpcRejectStatus 48 | { 49 | /// Wrong ONC/RPC protocol version used in call (it needs to be version 2). 50 | /// Wrong ONC/RPC protocol version used in call (it needs to be version 2). 51 | public const int ONCRPC_RPC_MISMATCH = 0; 52 | 53 | /// The remote ONC/RPC server could not authenticate the caller. 54 | /// The remote ONC/RPC server could not authenticate the caller. 55 | public const int ONCRPC_AUTH_ERROR = 1; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/Mount/MountList.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC.Mount 10 | { 11 | public class MountList : XdrAble 12 | { 13 | private MountBody _value; 14 | 15 | public MountList() 16 | { } 17 | 18 | public MountList(MountBody value) 19 | { this._value = value; } 20 | 21 | public MountList(XdrDecodingStream xdr) 22 | { xdrDecode(xdr); } 23 | 24 | public void xdrEncode(XdrEncodingStream xdr) 25 | { 26 | if (this._value != null) 27 | { 28 | xdr.xdrEncodeBoolean(true); 29 | this._value.xdrEncode(xdr); 30 | } 31 | else { xdr.xdrEncodeBoolean(false); }; 32 | } 33 | 34 | public void xdrDecode(XdrDecodingStream xdr) 35 | { 36 | this._value = xdr.xdrDecodeBoolean() ? new MountBody(xdr) : null; 37 | } 38 | 39 | public MountBody Value 40 | { 41 | get 42 | { return this._value; } 43 | } 44 | } 45 | 46 | public class MountBody : XdrAble 47 | { 48 | private Name _hostname; 49 | private NFSHandle _directory; 50 | private MountList _nextentry; 51 | 52 | public MountBody() 53 | { } 54 | 55 | public MountBody(XdrDecodingStream xdr) 56 | { xdrDecode(xdr); } 57 | 58 | public void xdrEncode(XdrEncodingStream xdr) 59 | { 60 | this._hostname.xdrEncode(xdr); 61 | this._directory.xdrEncode(xdr); 62 | this._nextentry.xdrEncode(xdr); 63 | } 64 | 65 | public void xdrDecode(XdrDecodingStream xdr) 66 | { 67 | this._hostname = new Name(xdr); 68 | this._directory = new NFSHandle(); 69 | this._directory.Version = V2.RPC.NFSv2Protocol.NFS_VERSION; 70 | this._directory.xdrDecode(xdr); 71 | this._nextentry = new MountList(xdr); 72 | } 73 | 74 | public Name HostName 75 | { 76 | get 77 | { return this._hostname; } 78 | } 79 | 80 | public NFSHandle Directory 81 | { 82 | get 83 | { return this._directory; } 84 | } 85 | 86 | public MountList NextEntry 87 | { 88 | get 89 | { return this._nextentry; } 90 | } 91 | } 92 | // End of mountlist.cs 93 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/ExtendedReadFolderArguments.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public class ExtendedReadFolderArguments : XdrAble 12 | { 13 | private NFSHandle _dir; 14 | private NFSCookie _cookie; 15 | private byte[] _cookieverf; 16 | private int _dircount; 17 | private int _maxcount; 18 | 19 | public ExtendedReadFolderArguments() 20 | { } 21 | 22 | public ExtendedReadFolderArguments(XdrDecodingStream xdr) 23 | { xdrDecode(xdr); } 24 | 25 | public void xdrEncode(XdrEncodingStream xdr) 26 | { 27 | this._dir.xdrEncode(xdr); 28 | this._cookie.xdrEncode(xdr); 29 | xdr.xdrEncodeOpaque(this._cookieverf, NFSv3Protocol.NFS3_COOKIEVERFSIZE); 30 | xdr.xdrEncodeInt(this._dircount); 31 | xdr.xdrEncodeInt(this._maxcount); 32 | } 33 | 34 | public void xdrDecode(XdrDecodingStream xdr) 35 | { 36 | this._dir = new NFSHandle(); 37 | this._dir.Version = V3.RPC.NFSv3Protocol.NFS_V3; 38 | this._dir.xdrDecode(xdr); 39 | this._cookie = new NFSCookie(xdr); 40 | this._cookieverf = xdr.xdrDecodeOpaque(NFSv3Protocol.NFS3_COOKIEVERFSIZE); 41 | this._dircount = xdr.xdrDecodeInt(); 42 | this._maxcount = xdr.xdrDecodeInt(); 43 | } 44 | 45 | public NFSHandle Directory 46 | { 47 | get 48 | { return this._dir; } 49 | set 50 | { this._dir = value; } 51 | } 52 | 53 | public NFSCookie Cookie 54 | { 55 | get 56 | { return this._cookie; } 57 | set 58 | { this._cookie = value; } 59 | } 60 | 61 | public byte[] CookieVerification 62 | { 63 | get 64 | { return this._cookieverf; } 65 | set 66 | { this._cookieverf = value; } 67 | } 68 | 69 | public int DirectoryLength 70 | { 71 | get 72 | { return this._dircount; } 73 | set 74 | { this._dircount = value; } 75 | } 76 | 77 | public int MaximumLength 78 | { 79 | get 80 | { return this._maxcount; } 81 | set 82 | { this._maxcount = value; } 83 | } 84 | } 85 | // End of READDIRPLUS3args.cs 86 | } -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/server/OncRpcServerTransportRegistrationInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc.server 26 | { 27 | /// 28 | /// The class OncRpcServerTransportRegistrationInfo holds 29 | /// information about (possibly multiple) registration of server transports 30 | /// for individual program and version numbers. 31 | /// 32 | /// 33 | /// The class OncRpcServerTransportRegistrationInfo holds 34 | /// information about (possibly multiple) registration of server transports 35 | /// for individual program and version numbers. 36 | /// Converted to C# using the db4o Sharpen tool. 37 | /// 38 | /// $Revision: 1.1.1.1 $ $State: Exp $ $Locker: $ 39 | /// Harald Albrecht 40 | /// Jay Walters 41 | public class OncRpcServerTransportRegistrationInfo 42 | { 43 | /// 44 | /// Number of ONC/RPC program handled by a server 45 | /// transport. 46 | /// 47 | /// Version number of ONC/RPC program handled. 48 | public OncRpcServerTransportRegistrationInfo(int program, int version) 49 | { 50 | this.program = program; 51 | this.version = version; 52 | } 53 | 54 | /// Number of ONC/RPC program handled. 55 | /// Number of ONC/RPC program handled. 56 | public int program; 57 | 58 | /// Version number of ONC/RPC program handled. 59 | /// Version number of ONC/RPC program handled. 60 | public int version; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/server/OncRpcServerTransportRegistrationInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc.server 26 | { 27 | /// 28 | /// The class OncRpcServerTransportRegistrationInfo holds 29 | /// information about (possibly multiple) registration of server transports 30 | /// for individual program and version numbers. 31 | /// 32 | /// 33 | /// The class OncRpcServerTransportRegistrationInfo holds 34 | /// information about (possibly multiple) registration of server transports 35 | /// for individual program and version numbers. 36 | /// Converted to C# using the db4o Sharpen tool. 37 | /// 38 | /// $Revision: 1.1.1.1 $ $State: Exp $ $Locker: $ 39 | /// Harald Albrecht 40 | /// Jay Walters 41 | public class OncRpcServerTransportRegistrationInfo 42 | { 43 | /// 44 | /// Number of ONC/RPC program handled by a server 45 | /// transport. 46 | /// 47 | /// Version number of ONC/RPC program handled. 48 | public OncRpcServerTransportRegistrationInfo(int program, int version) 49 | { 50 | this.program = program; 51 | this.version = version; 52 | } 53 | 54 | /// Number of ONC/RPC program handled. 55 | /// Number of ONC/RPC program handled. 56 | public int program; 57 | 58 | /// Version number of ONC/RPC program handled. 59 | /// Version number of ONC/RPC program handled. 60 | public int version; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V3/RPC/WriteStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V3.RPC 10 | { 11 | public enum StableHow 12 | { 13 | UNSTABLE = 0, 14 | DATA_SYNC = 1, 15 | FILE_SYNC = 2 16 | } 17 | 18 | public class WriteAccessOK : XdrAble 19 | { 20 | private WritingData _file_wcc; 21 | private int _count; 22 | private StableHow _committed; 23 | private byte[] _verf; 24 | 25 | public WriteAccessOK() 26 | { } 27 | 28 | public WriteAccessOK(XdrDecodingStream xdr) 29 | { xdrDecode(xdr); } 30 | 31 | public void xdrEncode(XdrEncodingStream xdr) 32 | { 33 | this._file_wcc.xdrEncode(xdr); 34 | xdr.xdrEncodeInt(this._count); 35 | xdr.xdrEncodeInt((int)this._committed); 36 | xdr.xdrEncodeOpaque(this._verf, NFSv3Protocol.NFS3_WRITEVERFSIZE); 37 | } 38 | 39 | public void xdrDecode(XdrDecodingStream xdr) 40 | { 41 | this._file_wcc = new WritingData(xdr); 42 | this._count = xdr.xdrDecodeInt(); 43 | this._committed = (StableHow)xdr.xdrDecodeInt(); 44 | this._verf = xdr.xdrDecodeOpaque(NFSv3Protocol.NFS3_WRITEVERFSIZE); 45 | } 46 | 47 | public WritingData Data 48 | { 49 | get 50 | { return this._file_wcc; } 51 | } 52 | 53 | public int Count 54 | { 55 | get 56 | { return this._count; } 57 | } 58 | 59 | public StableHow Committed 60 | { 61 | get 62 | { return this._committed; } 63 | } 64 | 65 | public byte[] Verification 66 | { 67 | get 68 | { return this._verf; } 69 | } 70 | } 71 | 72 | public class WriteAccessFAIL : XdrAble 73 | { 74 | private WritingData _dir_wcc; 75 | 76 | public WriteAccessFAIL() 77 | { } 78 | 79 | public WriteAccessFAIL(XdrDecodingStream xdr) 80 | { xdrDecode(xdr); } 81 | 82 | public void xdrEncode(XdrEncodingStream xdr) 83 | { this._dir_wcc.xdrEncode(xdr); } 84 | 85 | public void xdrDecode(XdrDecodingStream xdr) 86 | { this._dir_wcc = new WritingData(xdr); } 87 | 88 | public WritingData Data 89 | { 90 | get 91 | { return this._dir_wcc; } 92 | } 93 | } 94 | // End of WRITE3res.cs 95 | } -------------------------------------------------------------------------------- /NFSLibrary/Protocols/V2/RPC/ReadStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Automatically generated by jrpcgen 1.0.7 on 27/08/2010 3 | * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# 4 | * See http://remotetea.sourceforge.net for details 5 | */ 6 | using NFSLibrary.Protocols.Commons; 7 | using org.acplt.oncrpc; 8 | 9 | namespace NFSLibrary.Protocols.V2.RPC 10 | { 11 | public class ReadStatus : XdrAble 12 | { 13 | private NFSStats _status; 14 | private ReadAccessOK _ok; 15 | 16 | public ReadStatus() 17 | { } 18 | 19 | public ReadStatus(XdrDecodingStream xdr) 20 | { xdrDecode(xdr); } 21 | 22 | public void xdrEncode(XdrEncodingStream xdr) 23 | { 24 | xdr.xdrEncodeInt((int)this._status); 25 | 26 | switch (this._status) 27 | { 28 | case NFSStats.NFS_OK: 29 | this._ok.xdrEncode(xdr); 30 | break; 31 | default: 32 | break; 33 | } 34 | } 35 | 36 | public void xdrDecode(XdrDecodingStream xdr) 37 | { 38 | this._status = (NFSStats)xdr.xdrDecodeInt(); 39 | switch (this._status) 40 | { 41 | case NFSStats.NFS_OK: 42 | this._ok = new ReadAccessOK(xdr); 43 | break; 44 | default: 45 | break; 46 | } 47 | } 48 | 49 | public NFSStats Status 50 | { 51 | get 52 | { return this._status; } 53 | } 54 | 55 | public ReadAccessOK OK 56 | { 57 | get 58 | { return this._ok; } 59 | } 60 | } 61 | 62 | public class ReadAccessOK : XdrAble 63 | { 64 | private FileAttributes _attributes; 65 | private byte[] _data; 66 | 67 | public ReadAccessOK() 68 | { } 69 | 70 | public ReadAccessOK(XdrDecodingStream xdr) 71 | { xdrDecode(xdr); } 72 | 73 | public void xdrEncode(XdrEncodingStream xdr) 74 | { 75 | this._attributes.xdrEncode(xdr); 76 | xdr.xdrEncodeDynamicOpaque(this._data); 77 | } 78 | 79 | public void xdrDecode(XdrDecodingStream xdr) 80 | { 81 | this._attributes = new FileAttributes(xdr); 82 | this._data = xdr.xdrDecodeDynamicOpaque(); 83 | } 84 | 85 | public FileAttributes Attributes 86 | { 87 | get 88 | { return this._attributes; } 89 | } 90 | 91 | public byte[] Data 92 | { 93 | get 94 | { return this._data; } 95 | } 96 | } 97 | // End of readres.cs 98 | } -------------------------------------------------------------------------------- /NFSLibrary/RPC/org/acplt/oncrpc/OncRpcMessageType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants used for ONC/RPC messages to identify the 29 | /// type of message. 30 | /// 31 | /// 32 | /// A collection of constants used for ONC/RPC messages to identify the 33 | /// type of message. Currently, ONC/RPC messages can be either calls or 34 | /// replies. Calls are sent by ONC/RPC clients to servers to call a remote 35 | /// procedure (for you "ohohpies" that can be translated into the buzzword 36 | /// "method"). A server then will answer with a corresponding reply message 37 | /// (but not in the case of batched calls). 38 | /// Converted to C# using the db4o Sharpen tool. 39 | /// 40 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:41 $ $State: Exp $ $Locker: $ 41 | /// 42 | /// Harald Albrecht 43 | /// Jay Walters 44 | public class OncRpcMessageType 45 | { 46 | /// Identifies an ONC/RPC call. 47 | /// 48 | /// Identifies an ONC/RPC call. By a "call" a client request that a server 49 | /// carries out a particular remote procedure. 50 | /// 51 | public const int ONCRPC_CALL = 0; 52 | 53 | /// Identifies an ONC/RPC reply. 54 | /// 55 | /// Identifies an ONC/RPC reply. A server responds with a "reply" after 56 | /// a client has sent a "call" for a particular remote procedure, sending 57 | /// back the results of calling that procedure. 58 | /// 59 | public const int ONCRPC_REPLY = 1; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /remoteteanet/src/org/acplt/oncrpc/OncRpcMessageType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * $Header: /cvsroot/remotetea/remotetea/src/org/acplt/oncrpc/XdrVoid.java,v 1.1.1.1 2003/08/13 12:03:41 haraldalbrecht Exp $ 3 | * 4 | * Copyright (c) 1999, 2000 5 | * Lehrstuhl fuer Prozessleittechnik (PLT), RWTH Aachen 6 | * D-52064 Aachen, Germany. 7 | * All rights reserved. 8 | * 9 | * This library is free software; you can redistribute it and/or modify 10 | * it under the terms of the GNU Library General Public License as 11 | * published by the Free Software Foundation; either version 2 of the 12 | * License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | * GNU Library General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Library General Public 20 | * License along with this program (see the file COPYING.LIB for more 21 | * details); if not, write to the Free Software Foundation, Inc., 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. 23 | */ 24 | 25 | namespace org.acplt.oncrpc 26 | { 27 | /// 28 | /// A collection of constants used for ONC/RPC messages to identify the 29 | /// type of message. 30 | /// 31 | /// 32 | /// A collection of constants used for ONC/RPC messages to identify the 33 | /// type of message. Currently, ONC/RPC messages can be either calls or 34 | /// replies. Calls are sent by ONC/RPC clients to servers to call a remote 35 | /// procedure (for you "ohohpies" that can be translated into the buzzword 36 | /// "method"). A server then will answer with a corresponding reply message 37 | /// (but not in the case of batched calls). 38 | /// Converted to C# using the db4o Sharpen tool. 39 | /// 40 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:41 $ $State: Exp $ $Locker: $ 41 | /// 42 | /// Harald Albrecht 43 | /// Jay Walters 44 | public class OncRpcMessageType 45 | { 46 | /// Identifies an ONC/RPC call. 47 | /// 48 | /// Identifies an ONC/RPC call. By a "call" a client request that a server 49 | /// carries out a particular remote procedure. 50 | /// 51 | public const int ONCRPC_CALL = 0; 52 | 53 | /// Identifies an ONC/RPC reply. 54 | /// 55 | /// Identifies an ONC/RPC reply. A server responds with a "reply" after 56 | /// a client has sent a "call" for a particular remote procedure, sending 57 | /// back the results of calling that procedure. 58 | /// 59 | public const int ONCRPC_REPLY = 1; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /NekoDrive/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 192.168.0.102 7 | 8 | 9 | 0 10 | 11 | 12 | 0 13 | 14 | 15 | 0 16 | 17 | 18 | False 19 | 20 | 21 | 0 22 | 23 | 24 | 0 25 | 26 | 27 | False 28 | 29 | 30 | NekoDrive 31 | 32 | 33 | 60000 34 | 35 | 36 | False 37 | 38 | 39 | Browse... 40 | 41 | 42 | True 43 | 44 | 45 | True 46 | 47 | 48 | -1 49 | 50 | 51 | -1 52 | 53 | 54 | -1 55 | 56 | 57 | False 58 | 59 | 60 | -------------------------------------------------------------------------------- /jrpcgen/src/org/acplt/oncrpc/apps/jrpcgen/JrpcgenStruct.cs: -------------------------------------------------------------------------------- 1 | namespace org.acplt.oncrpc.apps.jrpcgen 2 | { 3 | /// 4 | /// The JrpcgenStruct class represents a single structure defined 5 | /// in an rpcgen "x"-file. 6 | /// 7 | /// 8 | /// The JrpcgenStruct class represents a single structure defined 9 | /// in an rpcgen "x"-file. 10 | /// Converted to C# using the db4o Sharpen tool. 11 | /// 12 | /// $Revision: 1.1.1.1 $ $Date: 2003/08/13 12:03:47 $ $State: Exp $ $Locker: $ 13 | /// 14 | /// Harald Albrecht 15 | /// Jay Walters 16 | public class JrpcgenStruct 17 | { 18 | /// Structure identifier. 19 | /// Structure identifier. 20 | public string identifier; 21 | 22 | /// Contains elements of structure. 23 | /// 24 | /// Contains elements of structure. The elements are of class 25 | /// JrpcgenDeclaration 26 | /// . 27 | /// 28 | public System.Collections.ArrayList elements; 29 | 30 | /// Returns just the identifier. 31 | /// Returns just the identifier. 32 | public override string ToString() 33 | { 34 | return identifier; 35 | } 36 | 37 | /// 38 | /// Constructs a JrpcgenStruct and sets the identifier and all 39 | /// its attribute elements. 40 | /// 41 | /// 42 | /// Constructs a JrpcgenStruct and sets the identifier and all 43 | /// its attribute elements. 44 | /// 45 | /// Identifier to be declared. 46 | /// 47 | /// Vector of atrribute elements of class 48 | /// JrpcgenDeclaration 49 | /// . 50 | /// 51 | public JrpcgenStruct(string identifier, System.Collections.ArrayList elements) 52 | { 53 | this.identifier = identifier; 54 | this.elements = elements; 55 | } 56 | 57 | /// 58 | /// Dumps the structure together with its attribute elements to 59 | /// System.out. 60 | /// 61 | /// 62 | /// Dumps the structure together with its attribute elements to 63 | /// System.out. 64 | /// 65 | public virtual void dump() 66 | { 67 | System.Console.Out.WriteLine("STRUCT " + identifier + ":"); 68 | int size = elements.Count; 69 | for (int idx = 0; idx < size; ++idx) 70 | { 71 | org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration d = (org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration 72 | )elements[idx]; 73 | System.Console.Out.Write(" "); 74 | d.dump(); 75 | } 76 | System.Console.Out.WriteLine(); 77 | } 78 | } 79 | } 80 | --------------------------------------------------------------------------------