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:
paweldomas 2014-06-10 16:33:16 +00:00
parent 7dda8ef7b2
commit 19890097f4
3 changed files with 6 additions and 5 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -32,7 +32,7 @@ import org.ice4j.message.*;
*
* @author Emil Ivov
*/
class StunServerTransaction
public class StunServerTransaction
{
/**
* The time that we keep server transactions active.