Class AsyncSocketState
- Namespace
- AT.Librarys.Container.Toolkit.Communication
- Assembly
- AT.Librarys.Container.dll
异步SOCKET TCP 中用来存储客户端状态信息的类
public class AsyncSocketState
- Inheritance
-
AsyncSocketState
- Inherited Members
- Extension Methods
Constructors
AsyncSocketState(Socket)
构造函数
public AsyncSocketState(Socket cliSock)
Parameters
cliSockSocket会话使用的Socket连接
Properties
ClientSocket
获得与客户端会话关联的Socket对象
public Socket ClientSocket { get; set; }
Property Value
Content
内容
public string Content { get; }
Property Value
Datagram
存取会话的报文
public string Datagram { get; set; }
Property Value
ID
客户端标识
public string ID { get; set; }
Property Value
RecvDataBuffer
接收数据缓冲区
public byte[] RecvDataBuffer { get; set; }
Property Value
- byte[]
Methods
Close()
关闭会话
public void Close()
InitBuffer()
初始化数据缓冲区
public void InitBuffer()