Catalyst File Transfer .NET

FileTransfer.ServerType Property

Gets and sets a value which specifies the type of file server the client is connecting to.

[Visual Basic]
Public Property ServerType As FileServerType
[C#]
public FileTransfer.FileServerType ServerType {get; set;}

Property Value

Returns a FileServerType enumeration value which specifies the type of file server, either using the File Transfer Protocol or the Hypertext Transfer Protocol.

Remarks

If this property value is specified as serverUnknown, the actual server type will either be determined by the URL or the value of the ServerPort property, if the port number is recognized as a standard serivce port. If the server type cannot be automatically identified, an error will be returned when the Connect method is called.

If you are connecting using a non-standard port number, and are not specifying a URL for the remote file name, you should always initialize this property value to the correct server type before attempting to establish a connection.

See Also

FileTransfer Class | SocketTools Namespace