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. * @return a binary array containing the message data.
*/ */
byte[] getBytes() public byte[] getBytes()
{ {
return messageBytes; return messageBytes;
} }
@ -84,7 +84,7 @@ public class RawMessage
* *
* @return a the length of the message. * @return a the length of the message.
*/ */
int getMessageLength() public int getMessageLength()
{ {
return messageLength; return messageLength;
} }

View File

@ -35,7 +35,7 @@ import org.ice4j.message.*;
* @author Pascal Mogeri (contributed configuration of client transactions). * @author Pascal Mogeri (contributed configuration of client transactions).
* @author Lyubomir Marinov * @author Lyubomir Marinov
*/ */
class StunClientTransaction public class StunClientTransaction
implements Runnable implements Runnable
{ {
/** /**
@ -259,6 +259,7 @@ class StunClientTransaction
* The method acquires {@link #lock} and invokes {@link #runLocked()}. * The method acquires {@link #lock} and invokes {@link #runLocked()}.
* </p> * </p>
*/ */
@Override
public void run() public void run()
{ {
lock.lock(); lock.lock();
@ -477,7 +478,7 @@ class StunClientTransaction
* *
* @param evt the event that contains the newly received message * @param evt the event that contains the newly received message
*/ */
void handleResponse(StunMessageEvent evt) public void handleResponse(StunMessageEvent evt)
{ {
lock.lock(); lock.lock();
try try

View File

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