Example #1
0
 internal void SendConnectionRequest(string name, string remoteEndpointId, byte[] payload,
                                     Action <long, NativeConnectionResponse> callback, NativeMessageListenerHelper listener)
 {
     C.NearbyConnections_SendConnectionRequest(
         SelfPtr(),
         name,
         remoteEndpointId,
         payload,
         new UIntPtr((ulong)payload.Length),
         InternalConnectResponseCallback,
         Callbacks.ToIntPtr <long, NativeConnectionResponse>(
             callback, NativeConnectionResponse.FromPointer),
         listener.AsPointer());
 }
Example #2
0
 internal void AcceptConnectionRequest(string remoteEndpointId, byte[] payload,
                                       NativeMessageListenerHelper listener)
 {
     C.NearbyConnections_AcceptConnectionRequest(SelfPtr(), remoteEndpointId, payload,
                                                 new UIntPtr((ulong)payload.Length), listener.AsPointer());
 }
 internal void SendConnectionRequest(string name, string remoteEndpointId, byte[] payload,
                                 Action<long, NativeConnectionResponse> callback, NativeMessageListenerHelper listener)
 {
     C.NearbyConnections_SendConnectionRequest(
         SelfPtr(),
         name,
         remoteEndpointId,
         payload,
         new UIntPtr((ulong)payload.Length),
         InternalConnectResponseCallback,
         Callbacks.ToIntPtr<long, NativeConnectionResponse>(
             callback, NativeConnectionResponse.FromPointer),
         listener.AsPointer());
 }
 internal void AcceptConnectionRequest(string remoteEndpointId, byte[] payload,
                                   NativeMessageListenerHelper listener)
 {
     C.NearbyConnections_AcceptConnectionRequest(SelfPtr(), remoteEndpointId, payload,
         new UIntPtr((ulong)payload.Length), listener.AsPointer());
 }
Example #5
0
 internal void SendConnectionRequest(string name, string remoteEndpointId, byte[] payload, Action <long, NativeConnectionResponse> callback, NativeMessageListenerHelper listener)
 {
     NearbyConnections.NearbyConnections_SendConnectionRequest(base.SelfPtr(), name, remoteEndpointId, payload, new UIntPtr((ulong)payload.Length), new NearbyConnectionTypes.ConnectionResponseCallback(NearbyConnectionsManager.InternalConnectResponseCallback), Callbacks.ToIntPtr <long, NativeConnectionResponse>(callback, new Func <IntPtr, NativeConnectionResponse>(NativeConnectionResponse.FromPointer)), listener.AsPointer());
 }