Mark Roll
Mark Roll

Reputation: 566

Communication server-client (TcpClient or Socket?)

I will try to create a server and a client (just to communicate with each other) and I see on the internet I have the option of tcpClient and the option of Socket.

So, I would like to know which of these two is the better way, to begin with.

Upvotes: 0

Views: 206

Answers (1)

mdziob
mdziob

Reputation: 1176

TcpClient is just a wrapper for Socket, and is more high-level. More info in link below: What are the benefits of using TcpClient over a Socket directly?

Upvotes: 1

Related Questions