Export (0) Print
Expand All
5 out of 6 rated this helpful - Rate this topic

Socket Members

Implements the Berkeley sockets interface.

The Socket type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Socket Overloaded. Initializes a new instance of the Socket class.
Top
  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
Public property Supported by the .NET Compact Framework AddressFamily Gets the address family of the Socket.
Public property Supported by the .NET Compact Framework Available Gets the amount of data that has been received from the network and is available to be read.
Public property Supported by the .NET Compact Framework Blocking Gets or sets a value that indicates whether the Socket is in blocking mode.
Public property Supported by the .NET Compact Framework Connected Gets a value that indicates whether a Socket is connected to a remote host as of the last Send or Receive operation.
Public property DontFragment Gets or sets a Boolean value that specifies whether the Socket allows Internet Protocol (IP) datagrams to be fragmented.
Public property EnableBroadcast Gets or sets a Boolean value that specifies whether the Socket can send or receive broadcast packets.
Public property ExclusiveAddressUse Gets or sets a Boolean value that specifies whether the Socket allows only one process to bind to a port.
Public property Supported by the .NET Compact Framework Handle Gets the operating system handle for the Socket.
Public property IsBound Gets a value that indicates whether the Socket is bound to a specific local port.
Public property LingerState Gets or sets a value that specifies whether the Socket will delay closing a socket in an attempt to send all pending data.
Public property Supported by the .NET Compact Framework LocalEndPoint Gets the local endpoint.
Public property MulticastLoopback Gets or sets a value that specifies whether outgoing multicast packets are delivered to the sending application.
Public property NoDelay Gets or sets a Boolean value that specifies whether the stream Socket is using the Nagle algorithm.
Public property Static member OSSupportsIPv6 Indicates whether the underlying operating system and network adaptors support Internet Protocol version 6 (IPv6).
Public property Supported by the .NET Compact Framework ProtocolType Gets the protocol type of the Socket.
Public property ReceiveBufferSize Gets or sets a value that specifies the size of the receive buffer of the Socket.
Public property ReceiveTimeout Gets or sets a value that specifies the amount of time after which a synchronous Receive call will time out.
Public property Supported by the .NET Compact Framework RemoteEndPoint Gets the remote endpoint.
Public property SendBufferSize Gets or sets a value that specifies the size of the send buffer of the Socket.
Public property SendTimeout Gets or sets a value that specifies the amount of time after which a synchronous Send call will time out.
Public property Supported by the .NET Compact Framework SocketType Gets the type of the Socket.
Public property Static member SupportsIPv4 Gets a value indicating whether IPv4 support is available and enabled on the current host.
Public property Static member SupportsIPv6 Obsolete. Gets a value that indicates whether the Framework supports IPv6 for certain obsolete Dns members.
Public property Ttl Gets or sets a value that specifies the Time To Live (TTL) value of Internet Protocol (IP) packets sent by the Socket.
Public property UseOnlyOverlappedIO Specifies whether the socket should only use Overlapped I/O mode.
Top
  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework IDisposable.Dispose Infrastructure. Releases all resources used by the Socket.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.