Exemple #1
0
        static void Main(string[] args)
        {
            string        message = "code my message";
            ReceiveBuffer buffer  = new ReceiveBuffer();

            buffer.MessageReceived += Buffer_MessageReceived;
            buffer.ByteRecieved(PacketGenerator.ConvertToByteArray(message));
        }
Exemple #2
0
        static void Main(string[] args)
        {
            string msg1 = "HackBulgaria C# 101!";
            string msg2 = "C# Programming 101";

            ReceiveBuffer buffer = new ReceiveBuffer();

            buffer.MsgReceived += OnMessageRecived;
            buffer.BytesReceived(PacketGenerator.ConvertToByteArray(msg1));
            buffer.BytesReceived(PacketGenerator.ConvertToByteArray(msg2));
        }