Exemplo n.º 1
0
        public void Send(IPEndPoint endPoint, byte packetType, params byte[][] datas)
        {
            var data = BytePro.Combine(packetType, datas);

            Send(data, data.Length, endPoint);
        }
Exemplo n.º 2
0
 public static bool Equals(IPEndPoint a, IPEndPoint b)
 {
     return(a.Port == b.Port && BytePro.Equals(a.Address.GetAddressBytes(), b.Address.GetAddressBytes()));
 }