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); } }
public void TestToString() { var ep = new NetEndPoint("127.0.0.1", "80"); Assert.Equal("127.0.0.1:80", ep.ToString()); }