5 out of 7 rated this helpful - Rate this topic

System.Net.Sockets Namespace

The System.Net.Sockets namespace provides a managed implementation of the Windows Sockets (Winsock) interface for developers who need to tightly control access to the network.

The TcpClient, TcpListener, and UdpClient classes encapsulate the details of creating TCP and UDP connections to the Internet.

  Class Description
Public class IPv6MulticastOption Contains option values for joining an IPv6 multicast group.
Public class LingerOption Specifies whether a Socket will remain connected after a call to the Close or Close methods and the length of time it will remain connected, if data remains to be sent.
Public class MulticastOption Contains IPAddress values used to join and drop multicast groups.
Public class NetworkStream Provides the underlying stream of data for network access.
Public class SendPacketsElement Represents an element in a SendPacketsElement array.
Public class Socket Implements the Berkeley sockets interface.
Public class SocketAsyncEventArgs Represents an asynchronous socket operation.
Public class SocketException The exception that is thrown when a socket error occurs.
Public class TcpClient Provides client connections for TCP network services.
Public class TcpListener Listens for connections from TCP network clients.
Public class UdpClient Provides User Datagram Protocol (UDP) network services.
  Structure Description
Public structure IPPacketInformation Presents the packet information from a call to ReceiveMessageFrom or EndReceiveMessageFrom.
Public structure SocketInformation Encapsulates the information that is necessary to duplicate a Socket.
  Enumeration Description
Public enumeration AddressFamily Specifies the addressing scheme that an instance of the Socket class can use.
Public enumeration IOControlCode Specifies the IO control codes supported by the IOControl method.
Public enumeration IPProtectionLevel A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.
Public enumeration ProtocolFamily Specifies the type of protocol that an instance of the Socket class can use.
Public enumeration ProtocolType Specifies the protocols that the Socket class supports.
Public enumeration SelectMode Defines the polling modes for the Socket.Poll method.
Public enumeration SocketAsyncOperation The type of asynchronous socket operation most recently performed with this context object.
Public enumeration SocketError Defines error codes for the Socket class.
Public enumeration SocketFlags Specifies socket send and receive behaviors.
Public enumeration SocketInformationOptions Describes states for a Socket.
Public enumeration SocketOptionLevel Defines socket option levels for the Socket.SetSocketOption and Socket.GetSocketOption methods.
Public enumeration SocketOptionName Defines configuration option names.
Public enumeration SocketShutdown Defines constants that are used by the Socket.Shutdown method.
Public enumeration SocketType Specifies the type of socket that an instance of the Socket class represents.
Public enumeration TransmitFileOptions The TransmitFileOptions enumeration defines values used in file transfer requests.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Ueless unless there is an example of how to declare System.Net.Sockets
Ueless unless there is an example of how to declare System.Net.Sockets

So how and where do you declare System.Net.Sockets ?  I dont know, its not present in the example, there is not examples to find on the net even this is one of the most fundamental functionalities, and have to hire a programer to tell me how. Visual Studio seems to have all, but is not a fill IDE, and is not user friendly.
.Net Protocol Builder
to build TCP protocol it is much easier to use .Net Protocol Builder .. it is fast and reliable and saves lots of time ... rather than going through all of this functions and classes ...  the tool turns network programming to as simple as adding a button to your user interface ..
.Net Protocol Builder 1.4
use .Net Protocol Builder rather than going through all of these classes and functions ..