NetHelperStartListen Method (Socket, Int32, Int32) | Helper帮助文档 |
指定Socket对象执行监听
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void StartListen( Socket socket, int port, int maxConnection )
Public Shared Sub StartListen ( socket As Socket, port As Integer, maxConnection As Integer )
public: static void StartListen( Socket^ socket, int port, int maxConnection )
static member StartListen : socket : Socket * port : int * maxConnection : int -> unit
Parameters
- socket
- Type: System.Net.SocketsSocket
执行监听的Socket对象 - port
- Type: SystemInt32
监听的端口号 - maxConnection
- Type: SystemInt32
允许的最大挂起连接数
See Also