Exemplo n.º 1
0
        public void server_onReceivedData(object o, onReceivedDataEventArgs e)
        {
            label5.Text = "Total received bytes: " + e.TotalReceivedData.ToString();
            label20.Text = "Total received packets: " + e.TotalReceivedPackets.ToString();
            Server_Log("Received data from: " + e.RemoteIP + "\tlength: " + e.Data.Length + "\tData: " + e.Data + "\tGuid: " + e.GUID.ToString() + "\tNickname: " + e.Nickname);

            label5.Refresh();
            label20.Refresh();
        }
Exemplo n.º 2
0
        public void server_onReceivedData(object o, onReceivedDataEventArgs e)
        {
            label5.Text  = "Total received bytes: " + e.TotalReceivedData.ToString();
            label20.Text = "Total received packets: " + e.TotalReceivedPackets.ToString();
            Server_Log("Received data from: " + e.RemoteIP + "\tlength: " + e.Data.Length + "\tData: " + e.Data + "\tGuid: " + e.GUID.ToString() + "\tNickname: " + e.Nickname);

            label5.Refresh();
            label20.Refresh();
        }