Boris Grozev
f08feea707
feat: Uses the last active socket to send data through.
2016-11-21 17:01:03 -06:00
Boris Grozev
25b0cfdc30
feat: Adds socket from the single-port and TCP harvesters to the Component.
2016-11-21 17:01:03 -06:00
Boris Grozev
2718728e92
feat: Adds an ENABLE_VIRTUAL_SOCKET_LAYER property
...
and a MergingDatagramSocket instance for each Component.
2016-11-21 17:01:03 -06:00
Boris Grozev
44ca871888
style: Makes the logger field final.
2016-11-21 16:59:47 -06:00
Boris Grozev
aafe003974
docs: Adds a comment.
2016-11-21 16:59:47 -06:00
Boris Grozev
12a4ef19a0
feat: Adds MergingDatagramSocket.
2016-11-21 16:59:47 -06:00
Boris Grozev
425cf9bb0d
logs: Logs more information.
2016-11-16 17:52:00 -06:00
Boris Grozev
d538ca30c0
feat: Adds a toString to MappingCandidateHarvester.
2016-11-16 16:36:49 -06:00
Boris Grozev
6bc252fdd4
style: Adds @Override annotations.
2016-11-16 16:36:46 -06:00
Boris Grozev
c47ecee639
feat: Appends known mappings to the TCP harvester.
2016-11-16 16:36:42 -06:00
Boris Grozev
a8729dda22
feat: Append mapping harvesters in the Agent.
2016-11-16 16:36:38 -06:00
Boris Grozev
1d13bc7175
feat: Adds MappingCandidateHarvesters.
...
Moves the HarvesterConfiguration class from jitsi-videobridge
to ice4j (now named MappingCandidateHarvesters), and re-implements
the STUN candidate harvester's discovery in a way which allows
us to detect failures.
2016-11-16 16:35:08 -06:00
Boris Grozev
c919de1b3a
refactor: Moves the getAllowedInetAddresses method to HostCandidateHarvester.
2016-11-16 16:34:49 -06:00
Boris Grozev
256176dde6
feat: Exposes a method to retrieve a list of allowed local InetAddress-es.
2016-11-16 16:34:43 -06:00
Boris Grozev
a08c77a3c1
fix: Fixes a potential synchronization issue.
2016-11-16 16:34:38 -06:00
Boris Grozev
99600368f6
style: Simplifies code.
2016-11-16 16:34:33 -06:00
Boris Grozev
3e01bff25e
style: Checks the log level before logging a FINE message.
2016-11-16 16:34:08 -06:00
Boris Grozev
a7ff3b8dca
style: Adds @Override annotations.
2016-11-16 16:34:03 -06:00
Boris Grozev
452af370a5
logs: Logs a warning
...
if a mapping harvester is not configured at harvest time.
2016-11-16 16:33:58 -06:00
Emil Ivov
7acb9fd5cc
Update AbstractCandidateHarvester.java
2016-10-25 11:59:42 -05:00
Boris Grozev
b5d3bb2ddc
Merge branch 'master' into refactor
2016-10-12 18:20:06 +03:00
Boris Grozev
84ca00a325
feat: Makes the single-port harvester's sockets' receive buffer sizes
...
configurable.
2016-10-05 11:28:21 +03:00
Matteo Campana
350fb833ac
Do not use String.format and construct the string only if logger FINEST is enabled.
2016-09-27 16:54:05 +02:00
Boris Grozev
3aaee5acde
refactor: Expose a method.
2016-09-09 07:26:55 -05:00
Boris Grozev
4216982445
refactor: Extracts AbstractTcpListener from TcpHarvester.
2016-09-08 21:26:52 -05:00
Boris Grozev
35e603d346
refactor: Extracts an abstract base class from SinglePortUdpHarvester.
2016-09-08 13:20:31 -05:00
Boris Grozev
0abaef19e8
refactor: Splits CandidateHarvester into an interface
...
and an abstract implementation.
2016-09-08 12:09:34 -05:00
Boris Grozev
1dc41efb1e
feat: Adds an optional prefix to the local ufrag.
2016-09-06 14:18:19 -05:00
Lyubomir Marinov
bed87bcbd3
Merge branch 'javadoc'
2016-08-26 13:39:21 -05:00
Ingo Bauersachs
4e8f3474e7
Merge pull request #73 from ubivent-seuffert/pmaster
...
Handover IOException to higher level
2016-08-18 06:35:23 +02:00
George Politis
d6c4c62689
Merge pull request #77 from bgrozev/statistics
...
Exposes RateStatistics#getAccumulatedCount
2016-08-17 13:30:12 -05:00
Boris Grozev
a21088dc7a
Exposes RateStatistics#getAccumulatedCount and
...
synchronizes access to some of the methods.
2016-08-11 16:37:36 -05:00
paweldomas
58c319981c
Make "consent freshness" intervals configurable
2016-07-21 15:01:30 -05:00
Boris Grozev
6fe376a56d
Lowers the log level of a message.
2016-07-06 12:45:27 -05:00
Boris Grozev
2af7613491
Lowers the log level of a message.
2016-07-06 12:04:03 -05:00
Boris Grozev
27f6f62c27
Include the local username fragment in various log messages.
2016-07-05 16:10:43 -05:00
Boris Grozev
dc29172a2c
Introduces a separate log level for each Agent instance.
...
Makes instances belonging to an Agent use the log level from the Agent
instance.
The motivation is to disable logging output from Agents created
for the purposes of jitsi-videobridge health checks (but not other
Agents).
2016-07-05 15:31:50 -05:00
ubivent-seuffert
ded13aa230
Merge branch 'master' of https://github.com/jitsi/ice4j into pmaster
2016-06-01 16:15:55 +02:00
ubivent-seuffert
aa22012c5d
throw needed exception
2016-06-01 16:15:34 +02:00
Boris Grozev
568ace382b
Fixes a failure to close a Socket instance.
...
Makes sure that Socket instances which are discarded because
they are only added after the corresponding ICE Agent has
moved away from the WAITING or RUNNING state are closed. This
prevents a file descriptor leak, since Socket instances which are
not closed (even after they are garbage collected) leave behind
sockets in state CLOSE_WAIT.
2016-05-20 11:38:22 -05:00
Boris Grozev
e4f5534b3d
Minor fixes to the documentation.
2016-05-20 11:35:00 -05:00
champtar
7312077fd9
Ensure tieBreaker is positive ( #71 )
...
Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE
http://findbugs.sourceforge.net/bugDescriptions.html#RV_ABSOLUTE_VALUE_OF_RANDOM_INT
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-05-09 15:12:19 +02:00
champtar
164ca04236
Drop MessageQueue, use a LinkedBlockingQueue instead ( #63 )
...
LinkedBlockingQueue are available since java 5
This is a bit more efficient as we were calling notifyAll()
instead of notify() in add(), thus waking up too much
This also remove 'logger.finest("Adding raw message to queue.");'
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-05-06 20:03:52 +02:00
champtar
a363a973eb
Use an ArrayList instead of reimplementing it ( #62 )
...
This should not change performance but is way more readable
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-05-06 19:54:50 +02:00
Ingo Bauersachs
a51af3f90f
Merge pull request #68 from champtar/ChannelData_padding
...
ChannelData: fix padding
2016-05-06 19:42:04 +02:00
Etienne CHAMPETIER
b76f9abfc9
ChannelData: fix decode()
...
I haven't found any user of this method.
This method was only working if offset == 0
and binMessage isn't a padded message.
arrayLen is useless as we have msgLen, so remove it,
and introduce a deprecated decode() to keep same api
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-05-03 11:25:03 +02:00
Etienne CHAMPETIER
84bd07c665
Use new ChannelData.encode(pad)
...
Padding is mandatory for TCP and TLS
See https://tools.ietf.org/html/rfc5766#section-11.5
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-05-03 11:25:03 +02:00
Etienne CHAMPETIER
d33d8b87e4
ChannelData: rework padding
...
getDataLength() was returning data length without
padding, so keep current behavior and update the javadoc.
(spotted with findbugs because length in
getDataLength was a dead store)
Introduce padTo4() to round up a number to the next
multiple of 4.
Deprecate encode() and introduce encode(boolean pad)
so we can let the caller decide if he wants padding
(mandatory when using tcp or tls)
See https://tools.ietf.org/html/rfc5766#section-11.5
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-05-03 11:25:03 +02:00
Emil Ivov
b877467bc4
Merge pull request #58 from jitsi/remove-ant
...
Remove obsolete Ant-build and the embedded libraries
2016-05-02 17:44:41 -05:00
bgrozev
249ebb913a
Merge pull request #65 from jitsi/fix-javadoc
...
Fix Javadoc formatting and missing parameters
2016-04-25 13:26:57 -05:00