Skip to main content
Version: 2.1.1

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

Inherits from IDisposable

Public Events

Name
Action< Ret?>OnReconnect()
StateDelegateStateChanged()
Client.ClientDelegatePong()
Client.ClientDelegateDisconnected()
Client.DeviceDelegateDeviceAvailable()
Client.DeviceIdDelegateDeviceRemoved()
Client.DeviceIdDelegateDeviceOpened()
Client.DeviceIdDelegateDeviceClosed()
Client.ExtendedFirmwareVersionDelegateExtendedFirmwareVersion()
Client.CursorStateDelegateCursorStateChanged()
Client.JointsStateDelegateJointsStateChanged()
Client.VerseGripStateDelegateVerseGripStateChanged()
Client.BodyOrientationDelegateBodyOrientationChanged()
Client.ConfigSaveDelegateConfigSaved()
Client.ConfigGravityCompensationDelegateGravityCompensationConfigChanged()
Client.ConfigTorqueScalingDelegateTorqueScalingConfigChanged()
Client.ConfigHandednessDelegateHandednessConfigChanged()
Client.StatusMotorCurrentDelegateMotorCurrentStatusChanged()
Client.StatusPowerSupplyDelegatePowerSupplyStatusChanged()
Client.StatsServiceDelegateServiceStatsChanged()
Client.StatsDeviceDelegateDeviceStatsChanged()
Client.ErrorDelegateErrorEvent()
Client.ServiceListClientsDelegateServiceClientsListed()
Client.ServiceGetClientDelegateServiceClientGot()
ActionThreadUpdate()
Action< Ret >ThreadPollError()

Public Functions

Name
boolIsReady()
delegate voidStateDelegate(ClientConnectionState state, ClientConnectionState previous)
ClientConnection(Configuration configuration)
ClientConnection(string desc)
voidDispose()
voidConnect()
voidTryReconnect(Ret? reason =null)
voidDisconnect()
boolIsDeviceOwned(uint deviceId)
boolIsDeviceOwnedByClient(uint deviceId)
ulongGetDeviceOwnerCid(uint deviceId)
ulongGetClientId()
uintGetProcessId()
stringGetSocketAddr()
override stringToString()
voidDevicesCacheClear()

Public Properties

Name
ClientCoreClient
ClientPollerClientPoller
ConfigurationConfig
stringDescription
ClientConnectionStateState

Public Events Documentation

event OnReconnect

Action< Ret?> OnReconnect()

event StateChanged

StateDelegate StateChanged()

event Pong

Client.ClientDelegate Pong()

event Disconnected

Client.ClientDelegate Disconnected()

event DeviceAvailable

Client.DeviceDelegate DeviceAvailable()

event DeviceRemoved

Client.DeviceIdDelegate DeviceRemoved()

event DeviceOpened

Client.DeviceIdDelegate DeviceOpened()

event DeviceClosed

Client.DeviceIdDelegate DeviceClosed()

event ExtendedFirmwareVersion

Client.ExtendedFirmwareVersionDelegate ExtendedFirmwareVersion()

event CursorStateChanged

Client.CursorStateDelegate CursorStateChanged()

event JointsStateChanged

Client.JointsStateDelegate JointsStateChanged()

event VerseGripStateChanged

Client.VerseGripStateDelegate VerseGripStateChanged()

event BodyOrientationChanged

Client.BodyOrientationDelegate BodyOrientationChanged()

event ConfigSaved

Client.ConfigSaveDelegate ConfigSaved()

event GravityCompensationConfigChanged

Client.ConfigGravityCompensationDelegate GravityCompensationConfigChanged()

event TorqueScalingConfigChanged

Client.ConfigTorqueScalingDelegate TorqueScalingConfigChanged()

event HandednessConfigChanged

Client.ConfigHandednessDelegate HandednessConfigChanged()

event MotorCurrentStatusChanged

Client.StatusMotorCurrentDelegate MotorCurrentStatusChanged()

event PowerSupplyStatusChanged

Client.StatusPowerSupplyDelegate PowerSupplyStatusChanged()

event ServiceStatsChanged

Client.StatsServiceDelegate ServiceStatsChanged()

event DeviceStatsChanged

Client.StatsDeviceDelegate DeviceStatsChanged()

event ErrorEvent

Client.ErrorDelegate ErrorEvent()

event ServiceClientsListed

Client.ServiceListClientsDelegate ServiceClientsListed()

event ServiceClientGot

Client.ServiceGetClientDelegate ServiceClientGot()

event ThreadUpdate

Action ThreadUpdate()

event ThreadPollError

Action< Ret > ThreadPollError()

Public Functions Documentation

function IsReady

bool IsReady()

function StateDelegate

delegate void StateDelegate(
ClientConnectionState state,
ClientConnectionState previous
)

function ClientConnection

ClientConnection(
Configuration configuration
)

function ClientConnection

ClientConnection(
string desc
)

function Dispose

void Dispose()

function Connect

void Connect()

function TryReconnect

void TryReconnect(
Ret? reason =null
)

function Disconnect

void Disconnect()

function IsDeviceOwned

bool IsDeviceOwned(
uint deviceId
)

function IsDeviceOwnedByClient

bool IsDeviceOwnedByClient(
uint deviceId
)

function GetDeviceOwnerCid

ulong GetDeviceOwnerCid(
uint deviceId
)

function GetClientId

ulong GetClientId()

function GetProcessId

uint GetProcessId()

function GetSocketAddr

string GetSocketAddr()

function ToString

override string ToString()

function DevicesCacheClear

void DevicesCacheClear()

Public Property Documentation

property CoreClient

Client CoreClient;

property ClientPoller

ClientPoller ClientPoller;

property Config

Configuration Config;

property Description

string Description;

property State

ClientConnectionState State;