Which is the diference about using Socket or TcpClient ?

  • Thread starter Thread starter marciocamurati
  • Start date Start date
M

marciocamurati

Hi,

I was thinking about this two: Socket and TcpClient and appear one
doubt, have any diference with this two ? If yes how is the diference
when I use it ?

Thanx

Marcio Camurati
 
TcpClient is built around a Socket but contains helper methods/properties.
You can access the Client property of the TcpClient (v2.0) to access the
underlying Socket. Alternatively you can call GetStream() to get a
NetworkStream (which you can also create from an existing Socket instance).

Peter
 
Back
Top