System.Net.Sockets Namespace
System.Net.Sockets命名空间
System.Net.Sockets命名空间
Important 重要
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
一些信息与预发布产品有关,这些产品在发布之前可能会进行重大修改。对于此处提供的信息,Microsoft不作任何明示或默示的保证。
Provides a managed implementation of the Windows Sockets (Winsock) interface for developers who need to tightly control access to the network.
为需要严格控制网络访问的开发人员提供Windows Sockets(Winsock)接口的托管实现。
Http |
Downloads the policy file that an instance of the Socket class will use. |
IPv6Multicast |
Contains option values for joining an IPv6 multicast group. |
Linger |
Specifies whether a Socket will remain connected after a call to the Close() or Close() methods and the length of time it will remain connected, if data remains to be sent. |
Multicast |
Contains IPAddress values used to join and drop multicast groups. |
Network |
Provides the underlying stream of data for network access. |
Safe |
Represents a wrapper class for a socket handle. |
Send |
Represents an element in a SendPacketsElement array. |
Socket 插座 |
Implements the Berkeley sockets interface. |
Socket |
Represents an asynchronous socket operation. |
Socket |
The exception that is thrown when a socket error occurs. |
Socket |
Represents a policy file instance. |
Socket |
This class contains extension methods to the Socket class. |
Tcp |
Provides client connections for TCP network services. |
Tcp |
Listens for connections from TCP network clients. |
Udp |
A client receiver for multicast traffic from any source, also known as Any Source Multicast (ASM) or Internet Standard Multicast (ISM). |
Udp |
Provides User Datagram Protocol (UDP) network services. |
Udp |
A client receiver for multicast traffic from a single source, also known as Source Specific Multicast (SSM). |
Unix |
Represents a Unix Domain Socket endpoint as a path. |
IPPacket |
Presents the packet information from a call to ReceiveMessageFrom(Byte[], Int32, Int32, SocketFlags, EndPoint, IPPacketInformation) or EndReceiveMessageFrom(IAsyncResult, SocketFlags, EndPoint, IPPacketInformation). |
Socket |
Encapsulates the information that is necessary to duplicate a Socket. |
Socket |
The result of a ReceiveFromAsync(Socket, ArraySegment<Byte>, SocketFlags, EndPoint) operation. |
Socket |
The result of a ReceiveMessageFromAsync(Socket, ArraySegment<Byte>, SocketFlags, EndPoint) operation. |
Udp |
Presents UDP receive result information from a call to the ReceiveAsync() method. |
Address |
Specifies the addressing scheme that an instance of the Socket class can use. |
IOControl |
Specifies the IO control codes supported by the IOControl(Int32, Byte[], Byte[]) method. |
IPProtection |
A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix. |
Protocol |
Specifies the type of protocol that an instance of the Socket class can use. |
Protocol |
Specifies the protocols that the Socket class supports. |
Select |
Defines the polling modes for the Poll(Int32, SelectMode) method. |
Socket |
The type of asynchronous socket operation most recently performed with this context object. |
Socket |
Specifies the method to download a client access policy file. |
Socket |
Defines error codes for the Socket class. |
Socket |
Specifies socket send and receive behaviors. |
Socket |
Describes states for a Socket. |
Socket |
Defines socket option levels for the SetSocketOption(SocketOptionLevel, SocketOptionName, Int32) and GetSocketOption(SocketOptionLevel, SocketOptionName) methods. |
Socket |
Defines configuration option names. |
Socket |
Defines constants that are used by the Shutdown(SocketShutdown) method. |
Socket |
Specifies the type of socket that an instance of the Socket class represents. |
Transmit |
The TransmitFileOptions enumeration defines values used in file transfer requests. |
Security |
Represents a security critical action. |
The TcpClient, TcpListener, and UdpClient classes encapsulate the details of creating TCP and UDP connections to the Internet.
TcpClient、TcpClient和UdpClient类封装了创建到Internet的TCP和UDP连接的详细信息。
- System.Net
- System.Net.Cache
- System.Net.Security
- Network Programming in the .NET Framework
. NET Framework中的网络编程 - Best Practices for System.Net Classes
System. Net类的最佳实践 - Cache Management for Network Applications
网络应用程序的缓存管理 - Internet Protocol Version 6
互联网协议版本6 - Network Programming Samples
网络编程示例 - Network Tracing in the .NET Framework
. NET Framework中的网络跟踪 - Security in Network Programming
网络编程中的安全性 - Socket Performance Enhancements in Version 3.5
3.5版中的套接字性能增强
在GitHub上与我们合作
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for