Exemple #1
0
        public void RecieveServerData(Socket server)
        {
            while (true)
            {
                byte[] buffer = new byte[server.ReceiveBufferSize];
                server.Receive(buffer);

                SerializableObject connectionReply = (SerializableObject)buffer.BinaryDeserialization();

                Console.WriteLine(connectionReply.ToConsoleString());
            }
        }