Beispiel #1
0
        private void ConnAcceptedEvent(Socket client)
        {
            SocketClientEventArgs args = new SocketClientEventArgs();

            args.socket = client;
            ServerConnected?.Invoke(this, args);

            ListeningForServerMessage(client);
        }
 private static void TcpClient_OnReceived(object sender, SocketClientEventArgs e)
 {
     Console.WriteLine($"[UDPClient] recieved {e.Data.Length}");
     Console.WriteLine($"[UDPClient] {Encoding.Default.GetString(e.Data)}");
 }
Beispiel #3
0
 private void OnCommunicationClientEvent(SocketClientEventArgs args)
 {
     //throw new NotImplementedException();
 }