示例#1
0
 public void OnNetworkReceiveUnconnected(NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType)
 {
     if (messageType == UnconnectedMessageType.DiscoveryRequest)
     {
         TEDDebug.Log("[Server] recieved discovery response. connecting to:" + remoteEndPoint.ToString());
         m_netManager.SendDiscoveryResponse(new byte[] { 1 }, remoteEndPoint);
     }
 }
示例#2
0
        public void TestToString()
        {
            var ep = new NetEndPoint("127.0.0.1", "80");

            Assert.Equal("127.0.0.1:80", ep.ToString());
        }