edtFTPnet/Free - Open-source FTP component for .NET | Download

BaseSocket Class

Socket abstraction that simplifies socket code

Definition

Namespace: EnterpriseDT.Net
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0
C#
public abstract class BaseSocket
Inheritance
Object    BaseSocket
Derived

Constructors

BaseSocket Creates a BaseSocket.
BaseSocket(AddressFamily, SocketType, ProtocolType, ILogTag) Initializes a new instance of the StandardSocket class

Properties

AddressFamily 
Available 
Connected True if the socket was connected at the last operation
LocalEndPoint Gets the local endpoint.
RemoteEndPoint Gets the remote endpoint.

Methods

Accept Creates a new Socket for a newly created connection
BeginAccept 
BeginReceive 
Bind Associates a Socket with a local endpoint.
Close Closes the Socket connection and releases all associated resources.
Connect(EndPoint) Establishes a connection to a remote endpoint
Connect(EndPoint, Int32) Establishes a connection to a remote endpoint
EndAccept 
EndReceive 
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetStream Get the stream associated with the socket.
GetStream(Boolean) Get the stream associated with the socket.
GetTypeGets the Type of the current instance.
(Inherited from Object)
Listen Places socket in a listening state.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Poll 
Receive Receives data from a bound Socket.
Send(Byte) Sends data to a connected Socket.
Send(Byte, Int32, Int32, SocketFlags) 
SetSocketOption Sets a Socket option.
Shutdown 
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

addressFamily 
log Logging object
logTag Logging tag
protocolType 
socketType 

See Also