Exemple #1
0
 public async Task ConnectAsync(ButtplugEmbeddedConnectorOptions aConnector)
 {
     if (aConnector == null)
     {
         aConnector = new ButtplugEmbeddedConnectorOptions();
     }
     await ButtplugFFI.SendConnectLocal(
         _messageSorter,
         _clientHandle,
         aConnector.ServerName,
         aConnector.MaxPingTime,
         aConnector.AllowRawMessages,
         aConnector.DeviceConfigJSON,
         aConnector.UserDeviceConfigJSON,
         aConnector.DeviceCommunicationManagerTypes);
 }
        public async Task ConnectAsync(ButtplugEmbeddedConnectorOptions aConnector)
        {
            if (aConnector == null)
            {
                aConnector = new ButtplugEmbeddedConnectorOptions();
            }

            await ButtplugFFI.SendConnectLocal(
                _messageSorter,
                _clientHandle,
                aConnector.ServerName,
                aConnector.MaxPingTime,
                aConnector.AllowRawMessages,
                aConnector.DeviceConfigJSON,
                aConnector.UserDeviceConfigJSON,
                aConnector.DeviceCommunicationManagerTypes,
                SorterCallbackDelegate, GCHandle.ToIntPtr(_indexHandle));

            Connected = true;
        }