Export (0) Print
Expand All

Socket Members

Implements the Berkeley sockets interface.

The following tables list the members exposed by the Socket type.

  Name Description
Public method Supported by the .NET Compact Framework Socket Overloaded. Initializes a new instance of the Socket class.
Top

  Name Description
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 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 SupportsIPv4 Gets a value indicating whether IPv4 support is available and enabled on the current host.
Public property Static SupportsIPv6 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

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Accept Creates a new Socket for a newly created connection.
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 Disconnect Closes the socket connection and allows reuse of the socket.
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  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
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.
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 Supported by the .NET Compact Framework ReceiveFrom Overloaded. Receives a datagram and stores the source endpoint.
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 Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static 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 SendFile Overloaded. Sends a file and optional data synchronously to a connected Socket.
Public method Supported by the .NET Compact Framework SendTo Overloaded. Sends data to a specific endpoint.
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

  Name Description
Protected method Supported by the .NET Compact Framework Dispose Releases the unmanaged resources used by the Socket, and optionally disposes of the managed resources.
Protected method Supported by the .NET Compact Framework Finalize Overridden. Frees resources used by the Socket class.
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2015 Microsoft