コード例 #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());
 }
コード例 #2
0
 internal void AcceptConnectionRequest(string remoteEndpointId, byte[] payload,
                                       NativeMessageListenerHelper listener)
 {
     C.NearbyConnections_AcceptConnectionRequest(SelfPtr(), remoteEndpointId, payload,
                                                 new UIntPtr((ulong)payload.Length), listener.AsPointer());
 }
コード例 #3
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());
 }
コード例 #4
0
 internal void AcceptConnectionRequest(string remoteEndpointId, byte[] payload,
                                   NativeMessageListenerHelper listener)
 {
     C.NearbyConnections_AcceptConnectionRequest(SelfPtr(), remoteEndpointId, payload,
         new UIntPtr((ulong)payload.Length), listener.AsPointer());
 }
コード例 #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());
 }