Ejemplo n.º 1
0
        internal void ReceivedData(DestinationClient client, int clientServerId, byte[] data)
        {
            var wrapper = flowBinder.GetWrapper(clientServerId);
            var handler = flowBinder.GetHandler(clientServerId);

            handler.Method.Invoke(handler.Target, new[]
            {
                client,
                wrapper.DataWrapper.FormatRaw(data)
            });
        }
Ejemplo n.º 2
0
 internal void DisconnectMe(DestinationClient client)
 {
     serverClients.Remove(client);
     ClientDisconnected?.Invoke(client);
 }
Ejemplo n.º 3
0
 internal void ConnectMe(DestinationClient client)
 {
     serverClients.UnsafeAdd(client);
     ClientConnected?.Invoke(client);
 }
Ejemplo n.º 4
0
 public bool ContainsClient(DestinationClient client)
 {
     return(serverClients.Contains(client));
 }