Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            All.Communicate.Base.TcpServer server = new All.Communicate.Base.TcpServer(9999);
            server.Open();


            All.Communicate.Base.TcpClient tcp = new All.Communicate.Base.TcpClient("127.0.0.1", 9999);
            tcp.Open();
            tcp.GetArgs += tcp_GetArgs;
        }
Exemple #2
0
 void tcp_GetArgs(object sender, All.Communicate.Base.Base.ReciveArgs reciveArgs)
 {
     All.Communicate.Base.TcpClient tcp = (All.Communicate.Base.TcpClient)sender;
     byte[] buff = new byte[tcp.DataRecive];
     tcp.Read(buff);
 }