Modifies class access level for RawMessage, StunClientTransaction and StunServerTransaction so that they can be reused for the purpose of implementing TURN server. Patch by Aakash Garg.
This commit is contained in:
parent
7dda8ef7b2
commit
19890097f4
@ -74,7 +74,7 @@ public class RawMessage
|
||||
*
|
||||
* @return a binary array containing the message data.
|
||||
*/
|
||||
byte[] getBytes()
|
||||
public byte[] getBytes()
|
||||
{
|
||||
return messageBytes;
|
||||
}
|
||||
@ -84,7 +84,7 @@ public class RawMessage
|
||||
*
|
||||
* @return a the length of the message.
|
||||
*/
|
||||
int getMessageLength()
|
||||
public int getMessageLength()
|
||||
{
|
||||
return messageLength;
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ import org.ice4j.message.*;
|
||||
* @author Pascal Mogeri (contributed configuration of client transactions).
|
||||
* @author Lyubomir Marinov
|
||||
*/
|
||||
class StunClientTransaction
|
||||
public class StunClientTransaction
|
||||
implements Runnable
|
||||
{
|
||||
/**
|
||||
@ -259,6 +259,7 @@ class StunClientTransaction
|
||||
* The method acquires {@link #lock} and invokes {@link #runLocked()}.
|
||||
* </p>
|
||||
*/
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
lock.lock();
|
||||
@ -477,7 +478,7 @@ class StunClientTransaction
|
||||
*
|
||||
* @param evt the event that contains the newly received message
|
||||
*/
|
||||
void handleResponse(StunMessageEvent evt)
|
||||
public void handleResponse(StunMessageEvent evt)
|
||||
{
|
||||
lock.lock();
|
||||
try
|
||||
|
||||
@ -32,7 +32,7 @@ import org.ice4j.message.*;
|
||||
*
|
||||
* @author Emil Ivov
|
||||
*/
|
||||
class StunServerTransaction
|
||||
public class StunServerTransaction
|
||||
{
|
||||
/**
|
||||
* The time that we keep server transactions active.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user