ForwardSession 构造函数 (Socket, IPEndPoint, Int32) |
指定客户端的 socket 来实例化一个对象
命名空间:
HslCommunication.Enthernet
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法 public ForwardSession(
Socket socket,
IPEndPoint endPoint,
int cacheSize = 2048
)
Public Sub New (
socket As Socket,
endPoint As IPEndPoint,
Optional cacheSize As Integer = 2048
)
public:
ForwardSession(
Socket^ socket,
IPEndPoint^ endPoint,
int cacheSize = 2048
)
new :
socket : Socket *
endPoint : IPEndPoint *
?cacheSize : int
(* Defaults:
let _cacheSize = defaultArg cacheSize 2048
*)
-> ForwardSession
参数
- socket
- 类型:System.Net.SocketsSocket
客户端的socket - endPoint
- 类型:System.NetIPEndPoint
客户端的远程连接点 - cacheSize (Optional)
- 类型:SystemInt32
指定当前的缓冲区的大小
参见