Beispiel #1
0
    void Start()
    {
        UdpManager client = new UdpManager(SC.CLIENT);

        for (int i = 0; i < 20; i++)
        {
            client.Send(System.Text.Encoding.Unicode.GetBytes("客户端发来Test----" + i + "----"), m_RemotePoint);
        }

        client.Receive();
    }
Beispiel #2
0
    void Start()
    {
        UdpManager server = new UdpManager(SC.SERVER);

        server.Receive();
    }