NetworkBaseCreateSocketAndConnect 方法 |
名称 | 说明 | |
---|---|---|
CreateSocketAndConnect(String, Int32) |
创建一个新的socket对象并连接到远程的地址,默认超时时间为10秒钟,需要指定ip地址以及端口号信息 Create a new socket object and connect to the remote address. The default timeout is 10 seconds. You need to specify the IP address and port number. | |
CreateSocketAndConnect(IPEndPoint, Int32, IPEndPoint) |
创建一个新的socket对象并连接到远程的地址,需要指定远程终结点,超时时间(单位是毫秒),如果需要绑定本地的IP或是端口,传入 local对象 To create a new socket object and connect to the remote address, you need to specify the remote endpoint, the timeout period (in milliseconds), if you need to bind the local IP or port, pass in the local object | |
CreateSocketAndConnect(String, Int32, Int32) |
创建一个新的socket对象并连接到远程的地址,需要指定ip地址以及端口号信息,还有超时时间,单位是毫秒 To create a new socket object and connect to a remote address, you need to specify the IP address and port number information, and the timeout period in milliseconds |