Remarks
The
Socket
class provides a rich set of methods and properties for
network communications
.
The
Socket
class allows
y
ou to
p
erform
yp
both synchronous and asynchronous data transfer using any of the
communication protocols listed in the
ProtocolType
enumeration
.
The
Socket
class follows the
.
NET Framework naming pattern for
asynchronous methods; for example the synchronous
Receive
asynchronous methods; for example
,
the synchronous
Receive
method corresponds to the asynchronous
BeginReceive
and
EndReceive
methods
.
If your application only requires one thread during execution use the
If your application only requires one thread during execution
,
use the
following methods, which are designed for synchronous operation
mode