O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

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

Socket Programming with the .NET Compact Framework

The central class for socket programming with the .NET Compact Framework is the System.Net.Sockets.Socket class. The procedure for getting a Socket class connected to a remote computer depends on whether the socket connects as the host or as the client. Once the Socket is connected to a remote computer, however, the processes for reading and writing are exactly the same.

Making a Connection as a Client

To successfully make a connection as a client, we must first understand the System.Net.EndPoint class. The EndPoint holds the information about where to connect to the IPv4 address of the host and the desired port. To set up a valid EndPoint and use it to connect a socket to a host, follow these ...

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