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