Package de.pokerth.protocol.ProtoBuf

Examples of de.pokerth.protocol.ProtoBuf.InitMessage


    AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder()
      .setMajorVersion(PROTOCOL_VERSION_MAJOR)
      .setMinorVersion(PROTOCOL_VERSION_MINOR)
      .build();
    InitMessage init = InitMessage.newBuilder()
      .setBuildId(0)
      .setLogin(InitMessage.LoginType.guestLogin)
      .setRequestedVersion(requestedVersion)
      .setNickName(GuestUser)
      .build();
View Full Code Here


      initBuilder.setAvatarHash(ByteString.copyFrom(avatarData));
    }
    if (lastSessionId != null && lastSessionId.value != null) {
      initBuilder.setMyLastSessionId(ByteString.copyFrom(lastSessionId.value));
    }
    InitMessage init = initBuilder.build();
    msg = PokerTHMessage.newBuilder()
        .setMessageType(PokerTHMessageType.Type_InitMessage)
        .setInitMessage(init)
        .build();
    sendMessage(msg, s);
View Full Code Here

    // Send challenge.
    AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder()
        .setMajorVersion(PROTOCOL_VERSION_MAJOR)
        .setMinorVersion(PROTOCOL_VERSION_MINOR)
        .build();
    InitMessage init = InitMessage.newBuilder()
        .setBuildId(0)
        .setLogin(InitMessage.LoginType.authenticatedLogin)
        .setRequestedVersion(requestedVersion)
        .setClientUserData(ByteString.copyFromUtf8(scramAuth.executeStep1("test9999")))
        .build();
View Full Code Here

TOP

Related Classes of de.pokerth.protocol.ProtoBuf.InitMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.