packages/System.Net.Sockets.4.3.0/ref/netstandard1.3/System.Net.Sockets.xml
(开头部分) 45KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0" encoding="utf-8"?>
<doc>
<assembly>
<name>System.Net.Sockets</name>
</assembly>
<members>
<member name="T:System.Net.Sockets.ProtocolType">
<summary>Specifies the protocols that the <see cref="T:System.Net.Sockets.Socket" /> class supports.</summary>
</member>
<member name="F:System.Net.Sockets.ProtocolType.Tcp">
<summary>Transmission Control Protocol.</summary>
</member>
<member name="F:System.Net.Sockets.ProtocolType.Udp">
<summary>User Datagram Protocol.</summary>
</member>
<member name="F:System.Net.Sockets.ProtocolType.Unknown">
<summary>Unknown protocol.</summary>
</member>
<member name="F:System.Net.Sockets.ProtocolType.Unspecified">
<summary>Unspecified protocol.</summary>
</member>
<member name="T:System.Net.Sockets.Socket">
<summary>Implements the Berkeley sockets interface.</summary>
</member>
<member name="M:System.Net.Sockets.Socket.#ctor(System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType)">
<summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.Socket" /> class using the specified address family, socket type and protocol.</summary>
<param name="addressFamily">One of the <see cref="T:System.Net.Sockets.AddressFamily" /> values. </param>
<param name="socketType">One of the <see cref="T:System.Net.Sockets.SocketType" /> values. </param>
<param name="protocolType">One of the <see cref="T:System.Net.Sockets.ProtocolType" /> values. </param>
<exception cref="T:System.Net.Sockets.SocketException">The combination of <paramref name="addressFamily" />, <paramref name="socketType" />, and <paramref name="protocolType" /> results in an invalid socket. </exception>
</member>
<member name="M:System.Net.Sockets.Socket.#ctor(System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType)">
<summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.Socket" /> class using the specified socket type and protocol.</summary>
<param name="socketType">One of the <see cref="T:System.Net.Sockets.SocketType" /> values.</param>
<param name="protocolType">One of the <see cref="T:System.Net.Sockets.ProtocolType" /> values.</param>
<exception cref="T:System.Net.Sockets.SocketException">The combination of <paramref name="socketType" /> and <paramref name="protocolType" /> results in an invalid socket. </exception>
</member>
<member name="M:System.Net.Sockets.Socket.AcceptAsync(System.Net.Sockets.SocketAsyncEventArgs)">
<summary>Begins an asynchronous operation to accept an incoming connection attempt.</summary>
<returns>Returns true if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.Returns false if the I/O operation completed synchronously. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<exception cref="T:System.ArgumentException">An argument is not valid. This exception occurs if the buffer provided is not large enough. The buffer must be at least 2 * (sizeof(SOCKADDR_STORAGE + 16) bytes. This exception also occurs if multiple buffers are specified, the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> property is not null.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">An argument is out of range. The exception occurs if the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.Count" /> is less than 0.</exception>
<exception cref="T:System.InvalidOperationException">An invalid operation was requested. This exception occurs if the accepting <see cref="T:System.Net.Sockets.Socket" /> is not listening for connections or the accepted socket is bound. You must call the <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> method before calling the <see cref="M:System.Net.Sockets.Socket.AcceptAsync(System.Net.Sockets.SocketAsyncEventArgs)" /> method.This exception also occurs if the socket is already connected or a socket operation was already in progress using the specified <paramref name="e" /> parameter. </exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See the Remarks section for more information. </exception>
<exception cref="T:System.NotSupportedException">Windows XP or later is required for this method.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed. </exception>
</member>
<member name="P:System.Net.Sockets.Socket.AddressFamily">
<summary>Gets the address family of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
<returns>One of the <see cref="T:System.Net.Sockets.AddressFamily" /> values.</returns>
</member>
<member name="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)">
<summary>Associates a <see cref="T:System.Net.Sockets.Socket" /> with a local endpoint.</summary>
<param name="localEP">The local <see cref="T:System.Net.EndPoint" /> to associate with the <see cref="T:System.Net.Sockets.Socket" />. </param>
<exception cref="T:System.ArgumentNullException">
<paramref name="localEP" /> is null. </exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See the Remarks section for more information. </exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed. </exception>
<exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation. </exception>
后面还有 332 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
