Socket Methods
The methods of the Socket class are listed here. For a complete list of Socket class members, see the Socket Members topic.
Public Methods
Accept Supported by the .NET Compact Framework. | Creates a new Socket for a newly created connection. |
BeginAccept Supported by the .NET Compact Framework. | Begins an asynchronous operation to accept an incoming connection attempt. |
BeginConnect Supported by the .NET Compact Framework. | Begins an asynchronous request for a remote host connection. |
BeginReceive Supported by the .NET Compact Framework. | Begins to asynchronously receive data from a connected Socket. |
BeginReceiveFrom Supported by the .NET Compact Framework. | Begins to asynchronously receive data from a specified network device. |
BeginSend Supported by the .NET Compact Framework. | Sends data asynchronously to a connected Socket. |
BeginSendTo Supported by the .NET Compact Framework. | Sends data asynchronously to a specific remote host. |
Bind Supported by the .NET Compact Framework. | Associates a Socket with a local endpoint. |
Close Supported by the .NET Compact Framework. | Closes the Socket connection and releases all associated resources. |
Connect Supported by the .NET Compact Framework. | Establishes a connection to a remote host. |
EndAccept Supported by the .NET Compact Framework. | Asynchronously accepts an incoming connection attempt and creates a new Socket to handle remote host communication. |
EndConnect Supported by the .NET Compact Framework. | Ends a pending asynchronous connection request. |
EndReceive Supported by the .NET Compact Framework. | Ends a pending asynchronous read. |
EndReceiveFrom Supported by the .NET Compact Framework. | Ends a pending asynchronous read from a specific endpoint. |
EndSend Supported by the .NET Compact Framework. | Ends a pending asynchronous send. |
EndSendTo Supported by the .NET Compact Framework. | Ends a pending asynchronous send to a specific location. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
GetHashCode Supported by the .NET Compact Framework. | Overridden. See Object.GetHashCode. |
GetSocketOption Supported by the .NET Compact Framework. | Overloaded. Returns the value of a Socket option. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
IOControl Supported by the .NET Compact Framework. | Sets low-level operating modes for the Socket. |
Listen Supported by the .NET Compact Framework. | Places a Socket in a listening state. |
Poll Supported by the .NET Compact Framework. | Determines the status of the Socket. |
Receive Supported by the .NET Compact Framework. | Overloaded. Receives data from a bound Socket. |
ReceiveFrom Supported by the .NET Compact Framework. | Overloaded. Receives a datagram and stores the source endpoint. |
![]() Select Supported by the .NET Compact Framework. | Determines the status of one or more sockets. |
Send Supported by the .NET Compact Framework. | Overloaded. Sends data to a connected Socket. |
SendTo Supported by the .NET Compact Framework. | Overloaded. Sends data to a specific endpoint. |
SetSocketOption Supported by the .NET Compact Framework. | Overloaded. Sets a Socket option. |
Shutdown Supported by the .NET Compact Framework. | Disables sends and receives on a Socket. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Protected Methods
Dispose Supported by the .NET Compact Framework. | Releases the unmanaged resources used by the Socket, and optionally disposes of the managed resources. |
Finalize Supported by the .NET Compact Framework. | Overridden. Frees resources used by the Socket class.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |


