The BaseSocket type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| BaseSocket()()()() |
Creates a BaseSocket.
| |
| BaseSocket(AddressFamily, SocketType, ProtocolType, ILogTag) |
Initializes a new instance of the StandardSocket class
|
Methods
| Name | Description | |
|---|---|---|
| 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 | ||
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetStream()()()() |
Get the stream associated with the socket.
| |
| GetStream(Boolean) |
Get the stream associated with the socket.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Listen |
Places socket in a listening state.
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Poll | ||
| Receive |
Receives data from a bound Socket.
| |
| Send(array<Byte>[]()[][]) |
Sends data to a connected Socket.
| |
| Send(array<Byte>[]()[][], Int32, Int32, SocketFlags) | ||
| SetSocketOption |
Sets a Socket option.
| |
| Shutdown | ||
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| addressFamily | ||
| log | Logging object | |
| logTag | Logging tag | |
| protocolType | ||
| socketType |
Properties
| Name | Description | |
|---|---|---|
| AddressFamily | ||
| Available | ||
| Connected |
True if the socket was connected at the last operation
| |
| LocalEndPoint |
Gets the local endpoint.
| |
| RemoteEndPoint |
Gets the remote endpoint.
|