Wednesday, April 29, 2009

SOCKET CLASS

The Socket class allows you to perform asynchronous data transfer using the following methods:
· ConnectAsync - Starts an asynchronous request for a connection to the remote host.
· SendAsync - Writes outgoing data from one or more buffers on a connected socket.
· ReceiveAsync - Reads incoming data into one or more buffers from a connected socket.
· Shutdown - Finishes any pending send operations, and signals the remote endpoint that the connection should be closed. If Send is specified, data may still be received until the remote computer closes its end of the connection (indicated by receiving 0 bytes).
· Close - Closes the remote host connection and releases all managed and unmanaged resources associated with the socket.

No comments:

Post a Comment