Exemple #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)
            });
        }
Exemple #2
0
 internal void DisconnectMe(DestinationClient client)
 {
     serverClients.Remove(client);
     ClientDisconnected?.Invoke(client);
 }
Exemple #3
0
 internal void ConnectMe(DestinationClient client)
 {
     serverClients.UnsafeAdd(client);
     ClientConnected?.Invoke(client);
 }
Exemple #4
0
 public bool ContainsClient(DestinationClient client)
 {
     return(serverClients.Contains(client));
 }