NetHelper.BindEndPoint Method (Socket, String, Int32)

HD.Common

NetHelperBindEndPoint Method (Socket, String, Int32) Helper帮助文档
绑定终结点

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void BindEndPoint(
	Socket socket,
	string ip,
	int port
)
Public Shared Sub BindEndPoint ( 
	socket As Socket,
	ip As String,
	port As Integer
)
public:
static void BindEndPoint(
	Socket^ socket, 
	String^ ip, 
	int port
)
static member BindEndPoint : 
        socket : Socket * 
        ip : string * 
        port : int -> unit 

Parameters

socket
Type: System.Net.SocketsSocket
Socket对象
ip
Type: SystemString
服务器IP地址
port
Type: SystemInt32
服务器端口
See Also

Reference