O'Reilly logo

C# for Java Developers by Adam Freeman, Allen Jones

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

Programming with Native Sockets

The native sockets interface is a managed code wrapper around the WinSock32 API, exposing the underlying socket system of the Windows operating system. For the most part, the .NET socket classes simply provide a one-to-one wrapper around the unmanaged code.

Java programmers are used to working with sockets at a higher level. The .NET socket classes allow for absolute control over Windows-based network programming but achieve this with increased complexity and demand a deeper understanding of network programming from the developer.

Creating Sockets

Sockets are created by specifying an address family, a socket type, and a protocol type. The address family is the address format that will be used to construct packets. ...

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