Beispiel #1
0
    private IEnumerator LoadTest()
    {
        TcpRemoteServer s = new TcpRemoteServer();

        RemoteServer.Init(s);
        s.autoReconnect = false;
        yield return(StartCoroutine(s.Connect("127.0.0.1", 7749)));

        Login_c2s msg = new Login_c2s();

        msg.opcode   = 1;
        msg.username = "******";
        msg.password = "******";
        s.SendMessage(msg);
    }