The Socket type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Socket |
Initializes a new instance of the Socket class.
|
Methods
| Name | Description | |
|---|---|---|
| Accept |
Creates a socket for a newly created connection.
| |
| Bind |
Associates a socket with a local endpoint.
| |
| Close |
Closes the current socket connection and releases all resources associated with that connection.
| |
| Connect |
Establishes a connection to a remote host.
| |
| Dispose |
Releases the unmanaged resources used by the current socket, and optionally releases the managed resources also.
| |
| Finalize |
Destructor.
(Overrides Object..::..Finalize()()()().) | |
| GetSocketOption(SocketOptionLevel, SocketOptionName) |
Not Supprted.
| |
| GetSocketOption(SocketOptionLevel, SocketOptionName, array<Byte>[]()[][]) |
Not Supprted.
| |
| Listen |
Enables the current socket to listen for incoming connection attempts.
| |
| Poll |
Determines the read/write status of the current socket for a specified polling mode.
| |
| Receive(array<Byte>[]()[][]) |
Receives all of the data currently available from a bound socket and places the data in a buffer array.
| |
| Receive(array<Byte>[]()[][], SocketFlags) |
Receives all of the data currently available from a bound socket, according to specified flags, and places the data in a buffer array.
| |
| Receive(array<Byte>[]()[][], Int32, SocketFlags) |
Receives data from a bound socket, according to specified flags, and places the data in a buffer array.
| |
| Receive(array<Byte>[]()[][], Int32, Int32, SocketFlags) |
Receives data from a bound socket, according to specified flags, and places the data in a buffer array, beginning at a specified location in the buffer.
| |
| ReceiveFrom(array<Byte>[]()[][], EndPoint%) |
Receives all of the data currently available from an unbound socket, places the data in a buffer array, and gets the data's endpoint.
| |
| ReceiveFrom(array<Byte>[]()[][], SocketFlags, EndPoint%) |
Receives all of the data currently available from an unbound socket, according to specified flags, and places the data in a buffer array. This method also gets the data's endpoint.
| |
| ReceiveFrom(array<Byte>[]()[][], Int32, SocketFlags, EndPoint%) |
Receives data from an unbound socket, according to specified flags, and places the data in a buffer array. This method also gets the data's endpoint.
| |
| ReceiveFrom(array<Byte>[]()[][], Int32, Int32, SocketFlags, EndPoint%) |
Receives data from an unbound socket, according to specified flags, and places the data in a buffer array, beginning at a specified location in the buffer. This method also gets the data's endpoint.
| |
| Send(array<Byte>[]()[][]) |
Sends all of the data currently in the buffer array to a bound socket.
| |
| Send(array<Byte>[]()[][], SocketFlags) |
Sends all of the data currently in the buffer array to a bound socket, according to specified flags.
| |
| Send(array<Byte>[]()[][], Int32, SocketFlags) |
Sends data to a bound socket according to specified flags, beginning at a specified location in the buffer array.
| |
| Send(array<Byte>[]()[][], Int32, Int32, SocketFlags) |
Sends data to a bound socket according to specified flags, beginning at a specified location in the buffer array.
| |
| SendTo(array<Byte>[]()[][], EndPoint) |
Sends all of the data currently in the buffer array to a specified endpoint.
| |
| SendTo(array<Byte>[]()[][], SocketFlags, EndPoint) |
Sends all of the data currently in the buffer array to a specified endpoint, according to specified flags.
| |
| SendTo(array<Byte>[]()[][], Int32, SocketFlags, EndPoint) |
Sends data to a specified endpoint, according to specified flags.
| |
| SendTo(array<Byte>[]()[][], Int32, Int32, SocketFlags, EndPoint) |
Sends data to a specified endpoint according to specified flags, beginning at a specified location in the buffer array.
| |
| SetSocketOption(SocketOptionLevel, SocketOptionName, Boolean) |
Not Supprted.
| |
| SetSocketOption(SocketOptionLevel, SocketOptionName, array<Byte>[]()[][]) |
Not Supprted.
| |
| SetSocketOption(SocketOptionLevel, SocketOptionName, Int32) |
Not Supprted.
|
Properties
| Name | Description | |
|---|---|---|
| Available |
Gets the amount of data that has been received from the network and is available to be read.
| |
| LocalEndPoint |
Gets the local endpoint that the current socket is using for communications.
| |
| ReceiveTimeout |
Gets or sets a value that specifies the amount of time after which a synchronous Receive call will time out.
| |
| RemoteEndPoint |
Gets the remote endpoint with which the current socket is communicating.
| |
| SendTimeout |
Gets or sets a value that specifies the amount of time after which a synchronous Send call will time out. (Not supported)
|