Socket Methods

The Socket type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Accept Creates a new Socket for a newly created connection.
Public method AcceptAsync Begins an asynchronous operation to accept an incoming connection attempt.
Public method Supported by the .NET Compact Framework BeginAccept Overloaded. Begins an asynchronous operation to accept an incoming connection attempt.
Public method Supported by the .NET Compact Framework BeginConnect Overloaded. Begins an asynchronous request for a remote host connection.
Public method BeginDisconnect Begins an asynchronous request to disconnect from a remote endpoint.
Public method Supported by the .NET Compact Framework BeginReceive Overloaded. Begins to asynchronously receive data from a connected Socket.
Public method Supported by the .NET Compact Framework BeginReceiveFrom Begins to asynchronously receive data from a specified network device.
Public method 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..
Public method Supported by the .NET Compact Framework BeginSend Overloaded. Sends data asynchronously to a connected Socket.
Public method BeginSendFile Overloaded. Sends a file asynchronously to a connected Socket object.
Public method Supported by the .NET Compact Framework BeginSendTo Sends data asynchronously to a specific remote host.
Public method Supported by the .NET Compact Framework Bind Associates a Socket with a local endpoint.
Public method Supported by the .NET Compact Framework Close Overloaded. Closes the Socket connection and releases all associated resources.
Public method Supported by the .NET Compact Framework Connect Overloaded. Establishes a connection to a remote host.
Public method ConnectAsync Begins an asynchronous request for a remote host connection.
Public method Disconnect Closes the socket connection and allows reuse of the socket.
Public method DisconnectAsync Begins an asynchronous request to disconnect from a remote endpoint.
Protected method Supported by the .NET Compact Framework Dispose Releases the unmanaged resources used by the Socket, and optionally disposes of the managed resources.
Public method DuplicateAndClose Duplicates the socket reference for the target process, and closes the socket for this process.
Public method Supported by the .NET Compact Framework EndAccept Overloaded. Asynchronously accepts an incoming connection attempt.
Public method Supported by the .NET Compact Framework EndConnect Ends a pending asynchronous connection request.
Public method EndDisconnect Ends a pending asynchronous disconnect request.
Public method Supported by the .NET Compact Framework EndReceive Overloaded. Ends a pending asynchronous read.
Public method Supported by the .NET Compact Framework EndReceiveFrom Ends a pending asynchronous read from a specific endpoint.
Public method EndReceiveMessageFrom Ends a pending asynchronous read from a specific endpoint. This method also reveals more information about the packet than EndReceiveFrom.
Public method Supported by the .NET Compact Framework EndSend Overloaded. Ends a pending asynchronous send.
Public method EndSendFile Ends a pending asynchronous send of a file.
Public method Supported by the .NET Compact Framework EndSendTo Ends a pending asynchronous send to a specific location.
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Finalize Frees resources used by the Socket class. (Overrides Object.Finalize().)
Public method Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetSocketOption Overloaded. Returns the value of a Socket option.
Public method Supported by the .NET Compact Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework IOControl Overloaded. Sets low-level operating modes for the Socket.
Public method Supported by the .NET Compact Framework Listen Places a Socket in a listening state.
Protected method Supported by the .NET Compact Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Poll Determines the status of the Socket.
Public method Supported by the .NET Compact Framework Receive Overloaded. Receives data from a bound Socket.
Public method ReceiveAsync Begins an asynchronous request to receive data from a connected Socket object.
Public method Supported by the .NET Compact Framework ReceiveFrom Overloaded. Receives a datagram and stores the source endpoint.
Public method ReceiveFromAsync Begins to asynchronously receive data from a specified network device.
Public method 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.
Public method ReceiveMessageFromAsync Begins to asynchronously receive the specified number of bytes of data into the specified location in the data buffer, using the specified SocketAsyncEventArgs.SocketFlags, and stores the endpoint and packet information.
Public method Static member Supported by the .NET Compact Framework Select Determines the status of one or more sockets.
Public method Supported by the .NET Compact Framework Send Overloaded. Sends data to a connected Socket.
Public method SendAsync Sends data asynchronously to a connected Socket object.
Public method SendFile Overloaded. Sends a file and optional data synchronously to a connected Socket.
Public method SendPacketsAsync Sends a collection of files or in memory data buffers asynchronously to a connected Socket object.
Public method Supported by the .NET Compact Framework SendTo Overloaded. Sends data to a specific endpoint.
Public method SendToAsync Sends data asynchronously to a specific remote host.
Public method Supported by the .NET Compact Framework SetSocketOption Overloaded. Sets a Socket option.
Public method Supported by the .NET Compact Framework Shutdown Disables sends and receives on a Socket.
Public method Supported by the .NET Compact Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework IDisposable.Dispose Infrastructure. Releases all resources used by the Socket.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft