Updating Guid stuff.

This commit is contained in:
lotodore
2011-02-09 22:23:45 +00:00
parent 8ac6a3f7f5
commit c1b1ae2fe0
2 changed files with 18 additions and 16 deletions
-1
View File
@@ -1671,7 +1671,6 @@ ServerLobbyThread::EstablishSession(SessionWrapper session)
&netInitAck->yourSessionId,
(char *)&sessionId,
boost::uuids::uuid::static_size());
// initAckData.sessionId = session.sessionData->GetId(); // TODO: currently unused.
netInitAck->yourPlayerId = session.playerData->GetUniqueId();
GetSender().Send(session.sessionData, ack);
+18 -15
View File
@@ -19,29 +19,32 @@ import org.bn.types.*;
@ASN1BoxedType ( name = "Guid" )
public class Guid implements IASN1PreparedElement {
@ASN1Integer( name = "Guid" )
@ASN1ValueRangeConstraint (
min = 0L,
max = 4294967295L
)
private Long value;
@ASN1OctetString( name = "Guid" )
@ASN1SizeConstraint ( max = 16L )
private byte[] value = null;
public Guid() {
}
public Guid(Long value) {
public Guid(byte[] value) {
this.value = value;
}
public void setValue(Long value) {
this.value = value;
public Guid(BitString value) {
setValue(value);
}
public Long getValue() {
public void setValue(byte[] value) {
this.value = value;
}
public void setValue(BitString btStr) {
this.value = btStr.getValue();
}
public byte[] getValue() {
return this.value;
}