Ejemplo n.º 1
0
 public ConnectionRequest(string remoteEndpointId,
                          string remoteEndpointName, string serviceId, byte[] payload)
 {
     Logger.d("Constructing ConnectionRequest");
     mRemoteEndpoint = new EndpointDetails(remoteEndpointId, remoteEndpointName, serviceId);
     this.mPayload   = Misc.CheckNotNull(payload);
 }
	public void OnEndpointFound(EndpointDetails discoveredEndpoint)
	{
		ConsoleLog.SLog("Found Endpoint: " +
			discoveredEndpoint.DeviceId + " " +
			discoveredEndpoint.EndpointId + " " + 
			discoveredEndpoint.Name);
	}
 public ConnectionRequest(string remoteEndpointId, string remoteDeviceId,
                      string remoteEndpointName, string serviceId, byte[] payload)
 {
     Logger.d("Constructing ConnectionRequest");
     mRemoteEndpoint = new EndpointDetails(remoteEndpointId, remoteDeviceId,
         remoteEndpointName, serviceId);
     this.mPayload = Misc.CheckNotNull(payload);
 }
 public void OnEndpointFound(EndpointDetails discoveredEndpoint)
 {
     Debug.Log("Found Endpoint!");
     NearbyRoom room = new NearbyRoom(
                           discoveredEndpoint.DeviceId,
                           discoveredEndpoint.EndpointId,
                           discoveredEndpoint.Name);
     if (roomDiscoveredCallback != null)
     {
         Debug.Log("Invoking roomCallback.");
         roomDiscoveredCallback.Invoke(room, true);
     }
     else
     {
         Debug.Log("No roomCallback configured.");
     }
 }
 public void OnEndpointFound(EndpointDetails discoveredEndpoint)
 {
     Debug.Log("OnEndpointFound");
     mNearbyStatus = "OnEndpointFound" + discoveredEndpoint.Name +
     " " + discoveredEndpoint.EndpointId;
     EndpointHolder holder = new EndpointHolder();
     holder.Endpoint = discoveredEndpoint;
     holder.State = EndpointState.DISCOVERED;
     mEndpoints.Remove(discoveredEndpoint.EndpointId);
     mEndpoints.Add(discoveredEndpoint.EndpointId, holder);
     mKnownEndpoints.Add(discoveredEndpoint.EndpointId);
 }
 public void OnEndpointFound(EndpointDetails discoveredEndpoint)
 {
     PlayGamesHelperObject.RunOnGameThread(
         () => mListener.OnEndpointFound(discoveredEndpoint));
 }