Rewrites parts that were deleted during my last git repo sync ... Sigh\!
This commit is contained in:
parent
0786b771c6
commit
9606ced6ec
@ -43,7 +43,7 @@ public class StunMessageEvent
|
|||||||
* The <tt>TransactionID</tt> of the transaction that the source message
|
* The <tt>TransactionID</tt> of the transaction that the source message
|
||||||
* is related to.
|
* is related to.
|
||||||
*/
|
*/
|
||||||
private final TransactionID tranID;
|
private final TransactionID transactionID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a StunMessageEvent according to the specified message.
|
* Constructs a StunMessageEvent according to the specified message.
|
||||||
@ -58,7 +58,8 @@ public class StunMessageEvent
|
|||||||
super(sourceAddress);
|
super(sourceAddress);
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.remoteAddress = remoteAddress;
|
this.remoteAddress = remoteAddress;
|
||||||
this.transactionID = TransactionID.createTransactionID(message.getTransactionID());
|
this.transactionID = TransactionID.createTransactionID(message
|
||||||
|
.getTransactionID());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -88,4 +89,16 @@ public class StunMessageEvent
|
|||||||
{
|
{
|
||||||
return remoteAddress;
|
return remoteAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the id of the transaction associated with the message that
|
||||||
|
* triggered this event.
|
||||||
|
*
|
||||||
|
* @return the id of the transaction associated with the message that
|
||||||
|
* triggered this event.
|
||||||
|
*/
|
||||||
|
public TransactionID getTransactionID()
|
||||||
|
{
|
||||||
|
return transactionID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -155,7 +155,9 @@ public class StunCandidateHarvester
|
|||||||
{
|
{
|
||||||
synchronized (resolveMap)
|
synchronized (resolveMap)
|
||||||
{
|
{
|
||||||
//TransactionID tranID = response.getMessage().getTransactionID();
|
TransactionID tranID = response.getTransactionID();
|
||||||
|
|
||||||
|
System.out.println("received a message tranid=" + tranID);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,7 @@ public class TransactionID
|
|||||||
*
|
*
|
||||||
* @return A <tt>TransactionID</tt> object with a unique transaction id.
|
* @return A <tt>TransactionID</tt> object with a unique transaction id.
|
||||||
*/
|
*/
|
||||||
static TransactionID createTransactionID()
|
public static TransactionID createTransactionID()
|
||||||
{
|
{
|
||||||
TransactionID tid = new TransactionID();
|
TransactionID tid = new TransactionID();
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public class TransactionID
|
|||||||
* @param transactionID the id to give to the new TransactionID
|
* @param transactionID the id to give to the new TransactionID
|
||||||
* @return a new TransactionID object with the specified id value;
|
* @return a new TransactionID object with the specified id value;
|
||||||
*/
|
*/
|
||||||
static TransactionID createTransactionID(byte[] transactionID)
|
public static TransactionID createTransactionID(byte[] transactionID)
|
||||||
{
|
{
|
||||||
TransactionID tid = new TransactionID();
|
TransactionID tid = new TransactionID();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user