SessionBase 类 |
命名空间: HslCommunication.Core.Net
SessionBase 类型公开以下成员。
名称 | 说明 | |
---|---|---|
SessionBase |
实例化一个默认的对象
| |
SessionBase(Socket) |
通过指定的Socket对象来初始化一个会话内容
|
名称 | 说明 | |
---|---|---|
HeartTime |
获取心跳验证的时间点 Get the time point of heartbeat verification | |
IpAddress |
获取当前的远程连接对象的IP地址 Get the IP address of the current remote connection object | |
IpEndPoint |
获取当前的连接对象连接的远程客户端 Get the remote client connected by the current connection object | |
OnlineTime |
获取当前的客户端的上线时间 Get the online time of the current client | |
WorkSocket |
实际传输数据的对象,除非你清楚自己在收发什么数据信息,否则尽量不直接使用本Socket对象 The actual data transmission object, unless you know what data information you are sending and receiving, try not to directly use this Socket object |
名称 | 说明 | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
ToString | Returns a string that represents the current object. (继承自 Object。) | |
UpdateHeartTime |
更新当前的心跳时间 Update the current heartbeat time | |
UpdateSocket |
更新当前的Socket连接对象信息
|
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |