public sealed class NatTargetClient : TcpClientBase,
ITcpConnectableClient, IConnectableClient, IClientSender, ISender, IRequestInfoSenderPublic NotInheritable Class NatTargetClient
Inherits TcpClientBase
Implements ITcpConnectableClient, IConnectableClient, IClientSender, ISender,
IRequestInfoSender[<SealedAttribute>]
type NatTargetClient =
class
inherit TcpClientBase
interface ITcpConnectableClient
interface IConnectableClient
interface IClientSender
interface ISender
interface IRequestInfoSender
end| NatTargetClient | 初始化 NatTargetClient 类的新实例。 |
| NatTargetClient(Boolean) | 初始化 NatTargetClient 类的新实例,并设置是否为备用模式。 |
| ClosedToken |
获取一个 CancellationToken,用于指示客户端是否已关闭。
(继承自 TcpClientBase。) |
| Config |
配置项
(继承自 SetupConfigObject。) |
| DataHandlingAdapter |
数据处理适配器
(继承自 TcpClientBase。) |
| DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
| IP |
IP地址
(继承自 TcpClientBase。) |
| IsClient |
表示是否为客户端终端。当为时,表示是客户端。否则为服务器通讯终端。
(继承自 TcpClientBase。) |
| LastReceivedTime |
最后一次接收到数据的时间
(继承自 TcpClientBase。) |
| LastSentTime |
最后一次发送数据的时间
(继承自 TcpClientBase。) |
| Logger |
日志记录器
(继承自 ConfigObject。) |
| Online |
判断是否在线
(继承自 TcpClientBase。) |
| PluginManager |
插件管理器
(继承自 SetupConfigObject。) |
| Port |
端口号
(继承自 TcpClientBase。) |
| Protocol |
终端协议
(继承自 TcpClientBase。) |
| RemoteIPHost |
远程IPHost
(继承自 TcpClientBase。) |
| Resolver |
获取解析器实例。
(继承自 SetupConfigObject。) |
| StandBy | 是否独立化当前对象。当为时,NatSessionClient即使断线,也不会释放该对象。 |
| UseSsl |
使用Ssl加密
(继承自 TcpClientBase。) |
| CloseAsync |
关闭客户端。
(继承自 TcpClientBase。) |
| ConnectAsync | 异步连接 |
| Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| GetValueTValue |
获取依赖注入的值,当没有注入时,会返回默认行为的值。
(继承自 DependencyObject。) |
| HasValueTValue |
判断在当前对象中是否有已设置的属性值。
(继承自 DependencyObject。) |
| RemoveValueTValue |
移除属性值。
(继承自 DependencyObject。) |
| SendAsync(IRequestInfo, CancellationToken) |
异步发送数据。
该发送会经过适配器封装,具体封装内容由适配器决定。 |
| SendAsync(ReadOnlyMemoryByte, CancellationToken) |
异步发送数据。
该发送会经过适配器封装,具体封装内容由适配器决定。 |
| SetupAsync |
异步配置设置项
(继承自 SetupConfigObject。) |
| SetValueTValue |
设置依赖注入的值,如果值已经存在,将被覆盖。
(继承自 DependencyObject。) |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| TryGetValueTValue |
尝试获取依赖注入的值,当没有注入时,会返回。
(继承自 DependencyObject。) |
| TryRemoveValueTValue |
尝试重置属性值,如果没有这个值,则返回。
(继承自 DependencyObject。) |
| Connect |
同步执行连接操作。
(由 ClientExtension 定义。) |
| ConnectAsync |
异步连接
(由 ClientExtension 定义。) |
| Map |
将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。) |
| Map |
将源对象映射到目标类型的实例。
(由 Mapper 定义。) |
| MapTTarget |
将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |
| TryConnect |
同步执行连接操作。不会抛出异常。
(由 ClientExtension 定义。) |
| TryConnectAsync |
尝试连接。不会抛出异常。
(由 ClientExtension 定义。) |