public FootstepListener(int port, string host) { _footstepListener = FootstepListener_Create(port, host); p_onError = new FootstepListener_OnErrorCallback(OnError); p_onConnect = new FootstepListener_OnConnectCallback(OnConnect); p_onDisconnect = new FootstepListener_OnDisconnectCallback(OnDisconnect); p_onNewStep = new FootstepListener_OnNewStepCallback(OnNewStep); FootstepListener_OnError(_footstepListener, p_onError); FootstepListener_OnConnect(_footstepListener, p_onConnect); FootstepListener_OnDisconnect(_footstepListener, p_onDisconnect); FootstepListener_OnNewStep(_footstepListener, p_onNewStep); }
private static extern void FootstepListener_OnConnect(IntPtr fl, FootstepListener_OnConnectCallback callback);