Socket Methods
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | Accept() | Creates a new Socket for a newly created connection. |
![]() | AcceptAsync(SocketAsyncEventArgs^) | Begins an asynchronous operation to accept an incoming connection attempt. |
![]() | BeginAccept(AsyncCallback^, Object^) | Begins an asynchronous operation to accept an incoming connection attempt. |
![]() | BeginAccept(Int32, AsyncCallback^, Object^) | Begins an asynchronous operation to accept an incoming connection attempt and receives the first block of data sent by the client application. |
![]() | BeginAccept(Socket^, Int32, AsyncCallback^, Object^) | Begins an asynchronous operation to accept an incoming connection attempt from a specified socket and receives the first block of data sent by the client application. |
![]() | BeginConnect(EndPoint^, AsyncCallback^, Object^) | Begins an asynchronous request for a remote host connection. |
![]() | BeginConnect(IPAddress^, Int32, AsyncCallback^, Object^) | Begins an asynchronous request for a remote host connection. The host is specified by an IPAddress and a port number. |
![]() | BeginConnect(array<IPAddress^>^, Int32, AsyncCallback^, Object^) | Begins an asynchronous request for a remote host connection. The host is specified by an IPAddress array and a port number. |
![]() | BeginConnect(String^, Int32, AsyncCallback^, Object^) | Begins an asynchronous request for a remote host connection. The host is specified by a host name and a port number. |
![]() | BeginDisconnect(Boolean, AsyncCallback^, Object^) | Begins an asynchronous request to disconnect from a remote endpoint. |
![]() | BeginReceive(array<Byte>^, Int32, Int32, SocketFlags, AsyncCallback^, Object^) | Begins to asynchronously receive data from a connected Socket. |
![]() | BeginReceive(array<Byte>^, Int32, Int32, SocketFlags, SocketError%, AsyncCallback^, Object^) | Begins to asynchronously receive data from a connected Socket. |
![]() | BeginReceive(IList<ArraySegment<Byte>>^, SocketFlags, AsyncCallback^, Object^) | Begins to asynchronously receive data from a connected Socket. |
![]() | BeginReceive(IList<ArraySegment<Byte>>^, SocketFlags, SocketError%, AsyncCallback^, Object^) | Begins to asynchronously receive data from a connected Socket. |
![]() | BeginReceiveFrom(array<Byte>^, Int32, Int32, SocketFlags, EndPoint^%, AsyncCallback^, Object^) | Begins to asynchronously receive data from a specified network device. |
![]() | BeginReceiveMessageFrom(array<Byte>^, Int32, Int32, SocketFlags, EndPoint^%, AsyncCallback^, Object^) | 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.. |
![]() | BeginSend(array<Byte>^, Int32, Int32, SocketFlags, AsyncCallback^, Object^) | Sends data asynchronously to a connected Socket. |
![]() | BeginSend(array<Byte>^, Int32, Int32, SocketFlags, SocketError%, AsyncCallback^, Object^) | Sends data asynchronously to a connected Socket. |
![]() | BeginSend(IList<ArraySegment<Byte>>^, SocketFlags, AsyncCallback^, Object^) | Sends data asynchronously to a connected Socket. |
![]() | BeginSend(IList<ArraySegment<Byte>>^, SocketFlags, SocketError%, AsyncCallback^, Object^) | Sends data asynchronously to a connected Socket. |
![]() | BeginSendFile(String^, AsyncCallback^, Object^) | Sends the file fileName to a connected Socket object using the UseDefaultWorkerThread flag. |
![]() | BeginSendFile(String^, array<Byte>^, array<Byte>^, TransmitFileOptions, AsyncCallback^, Object^) | Sends a file and buffers of data asynchronously to a connected Socket object. |
![]() | BeginSendTo(array<Byte>^, Int32, Int32, SocketFlags, EndPoint^, AsyncCallback^, Object^) | Sends data asynchronously to a specific remote host. |
![]() | Bind(EndPoint^) | Associates a Socket with a local endpoint. |
![]() ![]() | CancelConnectAsync(SocketAsyncEventArgs^) | Cancels an asynchronous request for a remote host connection. |
![]() | Close() | Closes the Socket connection and releases all associated resources. |
![]() | Close(Int32) | Closes the Socket connection and releases all associated resources with a specified timeout to allow queued data to be sent. |
![]() | Connect(EndPoint^) | Establishes a connection to a remote host. |
![]() | Connect(IPAddress^, Int32) | Establishes a connection to a remote host. The host is specified by an IP address and a port number. |
![]() | Connect(array<IPAddress^>^, Int32) | Establishes a connection to a remote host. The host is specified by an array of IP addresses and a port number. |
![]() | Connect(String^, Int32) | Establishes a connection to a remote host. The host is specified by a host name and a port number. |
![]() | ConnectAsync(SocketAsyncEventArgs^) | Begins an asynchronous request for a connection to a remote host. |
![]() ![]() | ConnectAsync(SocketType, ProtocolType, SocketAsyncEventArgs^) | Begins an asynchronous request for a connection to a remote host. |
![]() | Disconnect(Boolean) | Closes the socket connection and allows reuse of the socket. |
![]() | DisconnectAsync(SocketAsyncEventArgs^) | Begins an asynchronous request to disconnect from a remote endpoint. |
![]() | Dispose() | Releases all resources used by the current instance of the Socket class. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the Socket, and optionally disposes of the managed resources. |
![]() | DuplicateAndClose(Int32) | Duplicates the socket reference for the target process, and closes the socket for this process. |
![]() | EndAccept(array<Byte>^%, IAsyncResult^) | Asynchronously accepts an incoming connection attempt and creates a new Socket object to handle remote host communication. This method returns a buffer that contains the initial data transferred. |
![]() | EndAccept(array<Byte>^%, Int32%, IAsyncResult^) | Asynchronously accepts an incoming connection attempt and creates a new Socket object to handle remote host communication. This method returns a buffer that contains the initial data and the number of bytes transferred. |
![]() | EndAccept(IAsyncResult^) | Asynchronously accepts an incoming connection attempt and creates a new Socket to handle remote host communication. |
![]() | EndConnect(IAsyncResult^) | Ends a pending asynchronous connection request. |
![]() | EndDisconnect(IAsyncResult^) | Ends a pending asynchronous disconnect request. |
![]() | EndReceive(IAsyncResult^) | Ends a pending asynchronous read. |
![]() | EndReceive(IAsyncResult^, SocketError%) | Ends a pending asynchronous read. |
![]() | EndReceiveFrom(IAsyncResult^, EndPoint^%) | Ends a pending asynchronous read from a specific endpoint. |
![]() | EndReceiveMessageFrom(IAsyncResult^, SocketFlags%, EndPoint^%, IPPacketInformation%) | Ends a pending asynchronous read from a specific endpoint. This method also reveals more information about the packet than EndReceiveFrom. |
![]() | EndSend(IAsyncResult^) | Ends a pending asynchronous send. |
![]() | EndSend(IAsyncResult^, SocketError%) | Ends a pending asynchronous send. |
![]() | EndSendFile(IAsyncResult^) | Ends a pending asynchronous send of a file. |
![]() | EndSendTo(IAsyncResult^) | Ends a pending asynchronous send to a specific location. |
![]() | Equals(Object^) | 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().) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetSocketOption(SocketOptionLevel, SocketOptionName) | Returns the value of a specified Socket option, represented as an object. |
![]() | GetSocketOption(SocketOptionLevel, SocketOptionName, array<Byte>^) | Returns the specified Socket option setting, represented as a byte array. |
![]() | GetSocketOption(SocketOptionLevel, SocketOptionName, Int32) | Returns the value of the specified Socket option in an array. |
![]() | GetType() | |
![]() | IOControl(Int32, array<Byte>^, array<Byte>^) | Sets low-level operating modes for the Socket using numerical control codes. |
![]() | IOControl(IOControlCode, array<Byte>^, array<Byte>^) | Sets low-level operating modes for the Socket using the IOControlCode enumeration to specify control codes. |
![]() | Listen(Int32) | Places a Socket in a listening state. |
![]() | MemberwiseClone() | |
![]() | Poll(Int32, SelectMode) | Determines the status of the Socket. |
![]() | Receive(array<Byte>^) | Receives data from a bound Socket into a receive buffer. |
![]() | Receive(array<Byte>^, Int32, Int32, SocketFlags) | Receives the specified number of bytes from a bound Socket into the specified offset position of the receive buffer, using the specified SocketFlags. |
![]() | Receive(array<Byte>^, Int32, Int32, SocketFlags, SocketError%) | Receives data from a bound Socket into a receive buffer, using the specified SocketFlags. |
![]() | Receive(array<Byte>^, Int32, SocketFlags) | Receives the specified number of bytes of data from a bound Socket into a receive buffer, using the specified SocketFlags. |
![]() | Receive(array<Byte>^, SocketFlags) | Receives data from a bound Socket into a receive buffer, using the specified SocketFlags. |
![]() | Receive(IList<ArraySegment<Byte>>^) | Receives data from a bound Socket into the list of receive buffers. |
![]() | Receive(IList<ArraySegment<Byte>>^, SocketFlags) | Receives data from a bound Socket into the list of receive buffers, using the specified SocketFlags. |
![]() | Receive(IList<ArraySegment<Byte>>^, SocketFlags, SocketError%) | Receives data from a bound Socket into the list of receive buffers, using the specified SocketFlags. |
![]() | ReceiveAsync(SocketAsyncEventArgs^) | Begins an asynchronous request to receive data from a connected Socket object. |
![]() | ReceiveFrom(array<Byte>^, EndPoint^%) | Receives a datagram into the data buffer and stores the endpoint. |
![]() | ReceiveFrom(array<Byte>^, Int32, Int32, SocketFlags, EndPoint^%) | Receives the specified number of bytes of data into the specified location of the data buffer, using the specified SocketFlags, and stores the endpoint. |
![]() | ReceiveFrom(array<Byte>^, Int32, SocketFlags, EndPoint^%) | Receives the specified number of bytes into the data buffer, using the specified SocketFlags, and stores the endpoint. |
![]() | ReceiveFrom(array<Byte>^, SocketFlags, EndPoint^%) | Receives a datagram into the data buffer, using the specified SocketFlags, and stores the endpoint. |
![]() | ReceiveFromAsync(SocketAsyncEventArgs^) | Begins to asynchronously receive data from a specified network device. |
![]() | ReceiveMessageFrom(array<Byte>^, Int32, Int32, SocketFlags%, EndPoint^%, IPPacketInformation%) | 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. |
![]() | ReceiveMessageFromAsync(SocketAsyncEventArgs^) | 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. |
![]() ![]() | Select(IList^, IList^, IList^, Int32) | Determines the status of one or more sockets. |
![]() | Send(array<Byte>^) | Sends data to a connected Socket. |
![]() | Send(array<Byte>^, Int32, Int32, SocketFlags) | Sends the specified number of bytes of data to a connected Socket, starting at the specified offset, and using the specified SocketFlags. |
![]() | Send(array<Byte>^, Int32, Int32, SocketFlags, SocketError%) | Sends the specified number of bytes of data to a connected Socket, starting at the specified offset, and using the specified SocketFlags |
![]() | Send(array<Byte>^, Int32, SocketFlags) | Sends the specified number of bytes of data to a connected Socket, using the specified SocketFlags. |
![]() | Send(array<Byte>^, SocketFlags) | Sends data to a connected Socket using the specified SocketFlags. |
![]() | Send(IList<ArraySegment<Byte>>^) | Sends the set of buffers in the list to a connected Socket. |
![]() | Send(IList<ArraySegment<Byte>>^, SocketFlags) | Sends the set of buffers in the list to a connected Socket, using the specified SocketFlags. |
![]() | Send(IList<ArraySegment<Byte>>^, SocketFlags, SocketError%) | Sends the set of buffers in the list to a connected Socket, using the specified SocketFlags. |
![]() | SendAsync(SocketAsyncEventArgs^) | Sends data asynchronously to a connected Socket object. |
![]() | SendFile(String^) | Sends the file fileName to a connected Socket object with the UseDefaultWorkerThread transmit flag. |
![]() | SendFile(String^, array<Byte>^, array<Byte>^, TransmitFileOptions) | Sends the file fileName and buffers of data to a connected Socket object using the specified TransmitFileOptions value. |
![]() | SendPacketsAsync(SocketAsyncEventArgs^) | Sends a collection of files or in memory data buffers asynchronously to a connected Socket object. |
![]() | SendTo(array<Byte>^, EndPoint^) | Sends data to the specified endpoint. |
![]() | SendTo(array<Byte>^, Int32, Int32, SocketFlags, EndPoint^) | Sends the specified number of bytes of data to the specified endpoint, starting at the specified location in the buffer, and using the specified SocketFlags. |
![]() | SendTo(array<Byte>^, Int32, SocketFlags, EndPoint^) | Sends the specified number of bytes of data to the specified endpoint using the specified SocketFlags. |
![]() | SendTo(array<Byte>^, SocketFlags, EndPoint^) | Sends data to a specific endpoint using the specified SocketFlags. |
![]() | SendToAsync(SocketAsyncEventArgs^) | Sends data asynchronously to a specific remote host. |
![]() | SetIPProtectionLevel(IPProtectionLevel) | Set the IP protection level on a socket. |
![]() | SetSocketOption(SocketOptionLevel, SocketOptionName, Boolean) | |
![]() | SetSocketOption(SocketOptionLevel, SocketOptionName, array<Byte>^) | Sets the specified Socket option to the specified value, represented as a byte array. |
![]() | SetSocketOption(SocketOptionLevel, SocketOptionName, Int32) | Sets the specified Socket option to the specified integer value. |
![]() | SetSocketOption(SocketOptionLevel, SocketOptionName, Object^) | Sets the specified Socket option to the specified value, represented as an object. |
![]() | Shutdown(SocketShutdown) | Disables sends and receives on a Socket. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |


