跳至主要内容
版本: 2.1.1

Haply::Inverse::Unity::Internal::ClientConnection

继承于 IDisposable

公共活动​

名称
Action< Ret?>连接时()
州代表状态改变()
Client.ClientDelegate庞()
Client.ClientDelegate断开()
客户端.设备代理设备可用()
Client.DeviceIdDelegate设备已移除()
Client.DeviceIdDelegate设备打开()
Client.DeviceIdDelegate设备关闭()
客户端.扩展固件版本授权扩展固件版本()
客户端.游标状态代理游标状态改变()
Client.JointsStateDelegate关节状态改变()
客户端.VerseGripStateDelegate动词手柄状态改变()
客户端.BodyOrientationDelegate主体方向改变()
客户端.配置保存代理配置保存()
客户端.配置重力补偿代理重力补偿配置更改()
客户端.ConfigTorqueScalingDelegateTorqueScalingConfigChanged()
客户端.配置手势代理改变手度配置()
客户端.StatusMotorCurrentDelegate电机电流状态已更改()
客户端.StatusPowerSupplyDelegate电源状态已更改()
Client.StatsServiceDelegate服务统计更改()
客户端.StatsDeviceDelegate设备统计更改()
客户端.ErrorDelegate错误事件()
Client.ServiceListClientsDelegate服务客户端列表()
Client.ServiceGetClientDelegate服务客户端获取()
行动线程更新()
Action< Ret >ThreadPollError()

公共职能​

名称
boolIsReady()
代表 void状态代理(ClientConnectionStatestate,ClientConnectionStateprevious)。
客户端连接(配置)
客户端连接(字符串 desc)
空白处置()
空白连接()
空白尝试连接(Ret? reason =null)
空白断开()
boolIsDeviceOwned(uint deviceId)
boolIsDeviceOwnedByClient(uint设备Id)
乌龙GetDeviceOwnerCid(uint deviceId)
乌龙GetClientId()
整数GetProcessId()
字符串获取套接字地址()
覆盖字符串ToString()
空白设备缓存清除()

公共财产​

名称
客户核心客户端
客户投票器客户投票器
配置配置
字符串说明
客户端连接状态国家

公共活动文件​

事件 OnReconnect​

Action< Ret?> OnReconnect()

事件 StateChanged​

StateDelegate StateChanged()

活动庞​

Client.ClientDelegate Pong()

断开事件​

Client.ClientDelegate Disconnected()

事件 DeviceAvailable​

Client.DeviceDelegate DeviceAvailable()

事件 DeviceRemoved​

Client.DeviceIdDelegate DeviceRemoved()

事件 DeviceOpened​

Client.DeviceIdDelegate DeviceOpened()

事件 DeviceClosed​

Client.DeviceIdDelegate DeviceClosed()

事件 ExtendedFirmwareVersion​

Client.ExtendedFirmwareVersionDelegate ExtendedFirmwareVersion()

事件 CursorStateChanged​

Client.CursorStateDelegate CursorStateChanged()

事件 JointsStateChanged​

Client.JointsStateDelegate JointsStateChanged()

事件 VerseGripStateChanged​

Client.VerseGripStateDelegate VerseGripStateChanged()

事件 BodyOrientationChanged​

Client.BodyOrientationDelegate BodyOrientationChanged()

事件 ConfigSaved​

Client.ConfigSaveDelegate ConfigSaved()

事件 GravityCompensationConfigChanged​

Client.ConfigGravityCompensationDelegate GravityCompensationConfigChanged()

事件 TorqueScalingConfigChanged​

Client.ConfigTorqueScalingDelegate TorqueScalingConfigChanged()

事件 HandednessConfigChanged​

Client.ConfigHandednessDelegate HandednessConfigChanged()

事件 MotorCurrentStatusChanged​

Client.StatusMotorCurrentDelegate MotorCurrentStatusChanged()

事件 PowerSupplyStatusChanged​

Client.StatusPowerSupplyDelegate PowerSupplyStatusChanged()

事件 ServiceStatsChanged​

Client.StatsServiceDelegate ServiceStatsChanged()

事件 DeviceStatsChanged​

Client.StatsDeviceDelegate DeviceStatsChanged()

事件 ErrorEvent​

Client.ErrorDelegate ErrorEvent()

事件 ServiceClientsListed​

Client.ServiceListClientsDelegate ServiceClientsListed()

事件 ServiceClientGot​

Client.ServiceGetClientDelegate ServiceClientGot()

事件 ThreadUpdate​

Action ThreadUpdate()

事件 ThreadPollError​

Action< Ret > ThreadPollError()

公共函数文档​

函数 IsReady​

bool IsReady()

函数 StateDelegate​

delegate void StateDelegate(
ClientConnectionState state,
ClientConnectionState previous
)

函数 ClientConnection​

ClientConnection(
Configuration configuration
)

函数 ClientConnection​

ClientConnection(
string desc
)

函数 Dispose​

void Dispose()

功能连接​

void Connect()

函数 TryReconnect​

void TryReconnect(
Ret? reason =null
)

功能断开​

void Disconnect()

函数 IsDeviceOwned​

bool IsDeviceOwned(
uint deviceId
)

函数 IsDeviceOwnedByClient​

bool IsDeviceOwnedByClient(
uint deviceId
)

函数 GetDeviceOwnerCid​

ulong GetDeviceOwnerCid(
uint deviceId
)

函数 GetClientId​

ulong GetClientId()

函数 GetProcessId​

uint GetProcessId()

函数 GetSocketAddr​

string GetSocketAddr()

函数 ToString​

override string ToString()

功能 DevicesCacheClear​

void DevicesCacheClear()

公共财产文件​

属性​

Client CoreClient;

属性 ClientPoller​

ClientPoller ClientPoller;

属性配置​

Configuration Config;

物业说明​

string Description;

财产国​

ClientConnectionState State;