protected void SendMessage(string targetAddress, byte[] message, string myUser) { var pp = new Packet(Headers.Message.MESSAGE, myUser, Listener.Instance.LocalIP, message); SendRaw(pp.ToRaw(), targetAddress); }
private void btnSendWhoIsThere_Click(object sender, EventArgs e) { var s = GetSender(); var pp = new Packet(Headers.Init.WHO_IS_THERE, s.UserName, Listener.Instance.LocalIP, new byte[] { 0 }); s.BroadcastRaw(pp.ToRaw()); }