Пример #1
0
 void onReceive(AbstractTcpSocket socket, Socket client, byte[] bytes)
 {
     fabl.Info(Encoding.UTF8.GetString(bytes));
     socket.Disconnect();
 }
Пример #2
0
 void onCancel(object sender, ConsoleCancelEventArgs e)
 {
     _socket.Disconnect();
 }
Пример #3
0
 static void onReceive(AbstractTcpSocket socket, Socket client, byte[] bytes)
 {
     Debug.Log("Generated.");
     socket.Disconnect();
 }