O'Reilly logo

.NET Common Language Runtime Unleashed by Kevin Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

.NET Networking Transport Classes

Because TCP and UDP protocols are used so often, Microsoft built wrapper classes to handle most of the functionality required of a TCP or UDP client/server distributed application. These classes are TcpListener, TcpClient, and UdpClient. Because UDP is a connectionless protocol, the client and server can be handled with one class so there is not a UdpListener class.

Building a client/server application using these classes is similar to building an application using the Socket class. A higher level abstraction is involved, but the sequence of calls is essentially the same. For all but the specialized applications, you should use these classes.

UDP Class

A server using the UdpClient class is shown starting with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required