The Socket type exposes the following members.

Constructors

  NameDescription
Public methodSocket
Initializes a new instance of the Socket class.

Methods

  NameDescription
Public methodAccept
Creates a socket for a newly created connection.
Public methodBind
Associates a socket with a local endpoint.
Public methodClose
Closes the current socket connection and releases all resources associated with that connection.
Public methodConnect
Establishes a connection to a remote host.
Protected methodDispose
Releases the unmanaged resources used by the current socket, and optionally releases the managed resources also.
Protected methodFinalize
Destructor.
(Overrides Object..::..Finalize()()()().)
Public methodGetSocketOption(SocketOptionLevel, SocketOptionName)
Not Supprted.
Public methodGetSocketOption(SocketOptionLevel, SocketOptionName, array<Byte>[]()[][])
Not Supprted.
Public methodListen
Enables the current socket to listen for incoming connection attempts.
Public methodPoll
Determines the read/write status of the current socket for a specified polling mode.
Public methodReceive(array<Byte>[]()[][])
Receives all of the data currently available from a bound socket and places the data in a buffer array.
Public methodReceive(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.
Public methodReceive(array<Byte>[]()[][], Int32, SocketFlags)
Receives data from a bound socket, according to specified flags, and places the data in a buffer array.
Public methodReceive(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.
Public methodReceiveFrom(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.
Public methodReceiveFrom(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.
Public methodReceiveFrom(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.
Public methodReceiveFrom(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.
Public methodSend(array<Byte>[]()[][])
Sends all of the data currently in the buffer array to a bound socket.
Public methodSend(array<Byte>[]()[][], SocketFlags)
Sends all of the data currently in the buffer array to a bound socket, according to specified flags.
Public methodSend(array<Byte>[]()[][], Int32, SocketFlags)
Sends data to a bound socket according to specified flags, beginning at a specified location in the buffer array.
Public methodSend(array<Byte>[]()[][], Int32, Int32, SocketFlags)
Sends data to a bound socket according to specified flags, beginning at a specified location in the buffer array.
Public methodSendTo(array<Byte>[]()[][], EndPoint)
Sends all of the data currently in the buffer array to a specified endpoint.
Public methodSendTo(array<Byte>[]()[][], SocketFlags, EndPoint)
Sends all of the data currently in the buffer array to a specified endpoint, according to specified flags.
Public methodSendTo(array<Byte>[]()[][], Int32, SocketFlags, EndPoint)
Sends data to a specified endpoint, according to specified flags.
Public methodSendTo(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.
Public methodSetSocketOption(SocketOptionLevel, SocketOptionName, Boolean)
Not Supprted.
Public methodSetSocketOption(SocketOptionLevel, SocketOptionName, array<Byte>[]()[][])
Not Supprted.
Public methodSetSocketOption(SocketOptionLevel, SocketOptionName, Int32)
Not Supprted.

Properties

  NameDescription
Public propertyAvailable
Gets the amount of data that has been received from the network and is available to be read.
Public propertyLocalEndPoint
Gets the local endpoint that the current socket is using for communications.
Public propertyReceiveTimeout
Gets or sets a value that specifies the amount of time after which a synchronous Receive call will time out.
Public propertyRemoteEndPoint
Gets the remote endpoint with which the current socket is communicating.
Public propertySendTimeout
Gets or sets a value that specifies the amount of time after which a synchronous Send call will time out. (Not supported)

See Also