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