Minor formatting/spelling fixes.
This commit is contained in:
parent
bc8ab03637
commit
2da5150e14
@ -131,7 +131,7 @@ public class Agent
|
|||||||
= "IceProcessingState";
|
= "IceProcessingState";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the value of <tt>Ta</tt> as specified by the application or <tt>-1</tt>
|
* The value of <tt>Ta</tt> as specified by the application or <tt>-1</tt>
|
||||||
* if non was specified and we should calculate one ourselves.
|
* if non was specified and we should calculate one ourselves.
|
||||||
*/
|
*/
|
||||||
private long taValue = -1;
|
private long taValue = -1;
|
||||||
|
|||||||
@ -397,7 +397,7 @@ public class HostCandidateHarvester
|
|||||||
* @param minPort the port number where we should first try to bind before
|
* @param minPort the port number where we should first try to bind before
|
||||||
* moving to the next one (i.e. <tt>minPort + 1</tt>)
|
* moving to the next one (i.e. <tt>minPort + 1</tt>)
|
||||||
* @param maxPort the maximum port number where we should try binding
|
* @param maxPort the maximum port number where we should try binding
|
||||||
* before giving up and throwinG an exception.
|
* before giving up and throwing an exception.
|
||||||
*
|
*
|
||||||
* @return the newly created <tt>DatagramSocket</tt>.
|
* @return the newly created <tt>DatagramSocket</tt>.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -89,7 +89,7 @@ public class MultiplexingDatagramSocket
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Buffer variable for storing the SO_TIMEOUT value set by the
|
* Buffer variable for storing the SO_TIMEOUT value set by the
|
||||||
* last <tt>setSoTimeout()</tt> call. Altough not strictly needed,
|
* last <tt>setSoTimeout()</tt> call. Although not strictly needed,
|
||||||
* getting the locally stored value as opposed to retrieving it
|
* getting the locally stored value as opposed to retrieving it
|
||||||
* from a parent <tt>getSoTimeout()</tt> call seems to
|
* from a parent <tt>getSoTimeout()</tt> call seems to
|
||||||
* significantly improve efficiency, at least on some platforms.
|
* significantly improve efficiency, at least on some platforms.
|
||||||
@ -407,7 +407,9 @@ public class MultiplexingDatagramSocket
|
|||||||
* @throws SocketTimeoutException if the timeout has expired
|
* @throws SocketTimeoutException if the timeout has expired
|
||||||
* @throws IOException if an I/O error occurs
|
* @throws IOException if an I/O error occurs
|
||||||
*/
|
*/
|
||||||
private void receive(List<DatagramPacket> received, DatagramPacket p,
|
private void receive(
|
||||||
|
List<DatagramPacket> received,
|
||||||
|
DatagramPacket p,
|
||||||
int timeout)
|
int timeout)
|
||||||
throws SocketTimeoutException, IOException
|
throws SocketTimeoutException, IOException
|
||||||
{
|
{
|
||||||
@ -455,9 +457,10 @@ public class MultiplexingDatagramSocket
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
received.wait((timeout > 0 ?
|
received.wait(
|
||||||
timeout - (now - start) :
|
timeout > 0
|
||||||
1000));
|
? timeout - (now - start)
|
||||||
|
: 1000);
|
||||||
}
|
}
|
||||||
catch (InterruptedException ie)
|
catch (InterruptedException ie)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user