コード例 #1
0
ファイル: ServerRoot.cs プロジェクト: eangulee/Socket.Net
    private void BroadcastIPAddress()
    {
        string ip = IPUtils.GetIpAddress();

        Debug.LogFormat("广播消息{0}", ip);
        byte[] buf = Encoding.Default.GetBytes(ip);
        udpServer.Broadcast(buf, udpPort);
    }