Beispiel #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));
        }
Beispiel #2
0
 static void Main(string[] args)
 {
     string message = "ruski";
     RecieveBuffer rb = new RecieveBuffer(Rb_MessageRecieved);
     PacketGenerator test = new PacketGenerator(message, rb);
     
     test.DecodeingMessage(message);
    
 }
Beispiel #3
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));
        }