Socket Members
The following tables list the members exposed by the Socket type.
Public Constructors
Name | Description | |
---|---|---|
Socket | Initializes a new instance of the Socket class. |
Public 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. |
Public 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. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetSocketOption | Overloaded. Gets the setting of the current socket's specified configuration option. | |
GetType | (Inherited from Object.) | |
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 | Overloaded. Receives data from a bound socket and places the data in a buffer array. | |
ReceiveFrom | Overloaded. Receives data from an unbound socket, places the data in a buffer array, and gets the data's endpoint. | |
ReferenceEquals | (Inherited from Object.) | |
Send | Overloaded. Sends data to a bound socket. | |
SendTo | Overloaded. Sends data to an unbound socket. | |
SetSocketOption | Overloaded. Sets the specified configuration option for the current socket. | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
Dispose | Releases the unmanaged resources used by the current socket, and optionally releases the managed resources also. | |
Finalize | Frees resources that are being used by the current socket. | |
MemberwiseClone | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
System.IDisposable.Dispose | Releases all resources used by the current socket. |