Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Socket Class
Socket Methods
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Socket Methods

Updated: November 2007

The Socket type exposes the following members.

  NameDescription
Accept Creates a new Socket for a newly created connection.
BeginAcceptOverloaded. Begins an asynchronous operation to accept an incoming connection attempt.
BeginConnectOverloaded. Begins an asynchronous request for a remote host connection.
BeginDisconnect Begins an asynchronous request to disconnect from a remote endpoint.
BeginReceiveOverloaded. Begins to asynchronously receive data from a connected Socket.
BeginReceiveFrom Begins to asynchronously receive data from a specified network device.
BeginReceiveMessageFrom Begins to asynchronously receive the specified number of bytes of data into the specified location of the data buffer, using the specified SocketFlags, and stores the endpoint and packet information..
BeginSendOverloaded. Sends data asynchronously to a connected Socket.
BeginSendFileOverloaded. Sends a file asynchronously to a connected Socket object.
BeginSendTo Sends data asynchronously to a specific remote host.
Bind Associates a Socket with a local endpoint.
CloseOverloaded. Closes the Socket connection and releases all associated resources.
ConnectOverloaded. Establishes a connection to a remote host.
Disconnect Closes the socket connection and allows reuse of the socket.
Dispose Releases the unmanaged resources used by the Socket, and optionally disposes of the managed resources.
DuplicateAndClose Duplicates the socket reference for the target process, and closes the socket for this process.
EndAcceptOverloaded. Asynchronously accepts an incoming connection attempt.
EndConnect Ends a pending asynchronous connection request.
EndDisconnect Ends a pending asynchronous disconnect request.
EndReceiveOverloaded. Ends a pending asynchronous read.
EndReceiveFrom Ends a pending asynchronous read from a specific endpoint.
EndReceiveMessageFrom Ends a pending asynchronous read from a specific endpoint. This method also reveals more information about the packet than EndReceiveFrom.
EndSendOverloaded. Ends a pending asynchronous send.
EndSendFile Ends a pending asynchronous send of a file.
EndSendTo Ends a pending asynchronous send to a specific location.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Frees resources used by the Socket class. (Overrides Object..::.Finalize()()().)
GetHashCodeOverloaded.
GetSocketOptionOverloaded. Returns the value of a Socket option.
GetType Gets the Type of the current instance. (Inherited from Object.)
IOControlOverloaded. Sets low-level operating modes for the Socket.
Listen Places a Socket in a listening state.
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Poll Determines the status of the Socket.
ReceiveOverloaded. Receives data from a bound Socket.
ReceiveFromOverloaded. Receives a datagram and stores the source endpoint.
ReceiveMessageFrom Receives the specified number of bytes of data into the specified location of the data buffer, using the specified SocketFlags, and stores the endpoint and packet information.
Select Determines the status of one or more sockets.
SendOverloaded. Sends data to a connected Socket.
SendFileOverloaded. Sends a file and optional data synchronously to a connected Socket.
SendToOverloaded. Sends data to a specific endpoint.
SetSocketOptionOverloaded. Sets a Socket option.
Shutdown Disables sends and receives on a Socket.
ToString Returns a String that represents the current Object. (Inherited from Object.)
Top
  NameDescription
IDisposable..::.DisposeInfrastructure. Releases all resources used by the Socket.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker