450 Commits

Author SHA1 Message Date
boris
ab81b469af Controls the use of the dynamic host harvester with a property instead
of an API call.
2015-03-02 14:05:51 +00:00
boris
61d82e0885 Adds a UDP harvester using a single port. 2015-02-27 16:42:49 +00:00
boris
a55f6c6be6 Supports multiple "host" harvesters. Allows the default dynamic harvester to be disabled. 2015-02-27 16:42:37 +00:00
boris
5ebfe11c55 Refactors NetAccessManager. Allows UDP sockets to be associated with a
specific remote address.
2015-02-27 16:42:25 +00:00
boris
f322f67f93 Refactors the finding of a CandidatePair's socket. 2015-02-27 16:42:15 +00:00
boris
6999ebc19d Removes code duplication. 2015-02-27 16:42:05 +00:00
lubomir.marinov
5e489a8f05 Fixes a (possible) NullPointerException. 2015-02-08 14:02:17 +00:00
boris
50dd346aaf Supports running an Agent without any remote candidates. 2015-01-22 16:12:07 +00:00
boris
d9e14a6ba7 Fix deprecation warning. 2015-01-22 16:11:59 +00:00
boris
0c30dc7ae6 Fix a bug in Agent.getSelectedPair(), update documentation. 2015-01-22 16:11:54 +00:00
boris
7d58fe7a29 Supports address filtering for UDP host candidates. 2015-01-20 12:28:49 +00:00
lubomir.marinov
54f6fd3f86 Fixes technical errors in method invocations. Optimizes type checks on packet send and receive. 2014-11-12 14:12:37 +00:00
boris
088ca3609f Adds tcptype to all TCP candidates. 2014-10-14 19:01:14 +00:00
boris
004d962d71 Fixes a failure to detect end-of-stream/socket closed condition.
De-registers channels from the selector when they time-out.
2014-10-14 12:26:29 +00:00
lubomir.marinov
e273e24ee6 Attempts to respect DatagramSocket and Socket SO_RCVBUF and, thus, limits the possible retained memory. 2014-10-14 12:16:39 +00:00
lubomir.marinov
872bf7e8ef Does not use instanceof on each and every RTP packet. 2014-10-10 18:34:22 +00:00
boris
7b8d6b15a0 Adds a close method, makes threads daemon threads, removes an unnecessary field. 2014-10-10 13:16:10 +00:00
boris
1b24803c90 Reads in the pseudo SSL handshake and initial STUN packet in non-blocking mode. 2014-10-10 13:16:03 +00:00
boris
a281457a37 Removes a superfluous "synchronized" block. 2014-10-09 11:51:10 +00:00
lubomir.marinov
fc0b558497 Reduces the number of times that a received packet is internally copied. Reduces the scopes of synchronization blocks and breaks synchronization blocks into multiples on different objects. Optimizes hashtable iterations. Fixes warnings. 2014-10-09 09:47:26 +00:00
boris
9eca04ecad Adds an property to disable the use of IPv6 link local addresses for candidate allocation. 2014-10-03 12:29:38 +00:00
boris
707d258084 Implements lists of allowed and blocked IP addresses for use in TCP candidate allocation. 2014-10-03 12:29:29 +00:00
boris
d937a29022 Treats ClosedChannelException as a fatal error and stops the Connector. 2014-10-02 13:15:20 +00:00
boris
868228b3f6 Names the TCP harvester read thread. 2014-10-02 13:15:13 +00:00
lubomir.marinov
7454ebd7c5 Fixes warnings. 2014-09-15 23:40:15 +00:00
boris
26c34b25b4 Allows additional addresses and/or ports to be configured. Purge the components map. 2014-09-09 14:46:16 +00:00
boris
5f67322b90 Exports the obtained local/public addresses via the getFace() and getMask() methods. 2014-09-09 14:46:09 +00:00
boris
89082b2c1a Take into account the transport protocol for mapped candidates. Preserve
the isSSL flag.
2014-09-09 14:46:01 +00:00
boris
f08c6546ae Use the local candidate base, if available. 2014-09-09 14:45:53 +00:00
paweldomas
65a427cc38 Adds parsing of SSLTCP transport type. 2014-09-08 15:12:22 +00:00
boris
8a7f8c1eea Does not retransmit StunClientTransaction-s over TCP. 2014-09-05 16:47:03 +00:00
boris
17276fde15 Uses the first received STUN packet instead of waiting for a retransmission. 2014-09-05 16:46:57 +00:00
boris
6bc0b7c4de Fixes a bug with the accept thread busy waiting in select(), simplifies code. 2014-09-05 16:46:48 +00:00
lubomir.marinov
eccf1346c0 Further reduces the average time it takes to clone a DatagramPacket. 2014-09-05 15:47:37 +00:00
lubomir.marinov
a34e108b2d Significantly reduces the time to clone a DatagramPacket. 2014-09-05 13:18:50 +00:00
lubomir.marinov
fd616daa1c Fixes warnings, manually formats source code. 2014-09-05 13:17:16 +00:00
boris
e497af1850 Adds support for google's ssltcp. 2014-09-04 13:28:04 +00:00
boris
618ce97c7c Add a DTLS datagram filter. 2014-09-03 18:06:17 +00:00
boris
91d9b1dff6 Suppress a serialization warning. 2014-09-03 14:34:53 +00:00
boris
6932bd407c When a SocketChannel is in use, reads using the SocketChannel directly instead of through its InputStream. 2014-09-03 14:34:45 +00:00
boris
3b7a913eac Avoid unnecessary coping. 2014-09-03 14:34:38 +00:00
boris
9c70d917de Minor: fix log message. 2014-09-03 14:34:32 +00:00
boris
e4c914b943 Don't add pairs when the remote port is 0 (as can be when a remote cand is an active TCP cand). 2014-09-03 14:34:26 +00:00
boris
caea84ac07 Fix an exception in MultiplexingTcpHostHarvester. 2014-09-03 14:34:20 +00:00
boris
58b40d184f Uses List instead of Enumeration. 2014-09-03 14:34:12 +00:00
lubomir.marinov
04e0befbef Clarifies, clean the source code. Adds javadocs. Fixes warnings. 2014-09-02 13:17:17 +00:00
boris
40541920f4 Adds a harvester that binds to a specific local TCP port and
demultiplexes the accepted connections between the components that used
it.
2014-08-29 08:28:13 +00:00
boris
c23438f8c2 Add a CandidateTcpType field to candidate. 2014-08-29 08:28:04 +00:00
boris
026bfff995 Saves TCP sockets in NetAccessManager on the basis of both the local and remote address, in order to allow multiple Sockets/Connectors for a single local address. 2014-08-29 08:27:56 +00:00
boris
3c34615d2b Adds an InputStream to MultiplexedSocket. 2014-08-29 08:27:49 +00:00