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. ...
Get C# for Java Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.