Training
Module
Fundamentals of computer networking - Training
Learn the fundamental principles of computer networking to prepare you for the Azure admin and developer learning paths.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The System.Net.Sockets namespace contains a managed, cross-platform socket networking implementation. All other network-access classes in the System.Net namespace are built on top of this implementation of sockets.
The Socket class is a managed-code version of the socket services provided relying on native interoperability with Linux, macOS, or Windows. In most cases, the Socket
class methods simply marshal data into their native counterparts and handle any necessary security checks.
The Socket
class supports two basic modes, synchronous and asynchronous. In synchronous mode, calls to functions that perform network operations (such as SendAsync and ReceiveAsync) wait until the operation completes before returning control to the calling program. In asynchronous mode, these calls return immediately.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Training
Module
Fundamentals of computer networking - Training
Learn the fundamental principles of computer networking to prepare you for the Azure admin and developer learning paths.
Documentation
System.Net.Sockets.Socket class - .NET
Learn about the System.Net.Sockets.Socket class.
Use Sockets to send and receive data over TCP - .NET
Learn how the Socket class exposes socket network communication functionality in .NET.
Network programming in .NET - .NET
Learn about various networking approaches for .NET app development.
Use TcpClient and TcpListener - .NET
Learn how to use the TcpClient class to create a socket to request and receive data using TCP in .NET.