NetHelper.StartListen Method (Socket, String, Int32, Int32)

HD.Common

NetHelperStartListen Method (Socket, String, 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,
	string ip,
	int port,
	int maxConnection
)
Public Shared Sub StartListen ( 
	socket As Socket,
	ip As String,
	port As Integer,
	maxConnection As Integer
)
public:
static void StartListen(
	Socket^ socket, 
	String^ ip, 
	int port, 
	int maxConnection
)
static member StartListen : 
        socket : Socket * 
        ip : string * 
        port : int * 
        maxConnection : int -> unit 

Parameters

socket
Type: System.Net.SocketsSocket
执行监听的Socket对象
ip
Type: SystemString
监听的IP地址
port
Type: SystemInt32
监听的端口号
maxConnection
Type: SystemInt32
允许的最大挂起连接数
See Also

Reference