240 Commits

Author SHA1 Message Date
seb
67b8a98f57 Avoids GTalk's ICE state being TERMINATED. 2011-07-21 12:59:45 +00:00
seb
205df6ac70 Adds support for Google's TCP candidates as well as Google TURN TCP and SSLTCP harvesters. 2011-07-20 15:05:19 +00:00
seb
c91bfae9b0 Fixes problems with server reflexives address checks (as all local candidates has their own ufrag we will not remove server reflexive candidates when pruning checklists. Handles STALE_CREDENTIALS error due to checks being sent too quickly to a remote peer that does not process candidates IQ yet. 2011-06-10 14:06:05 +00:00
seb
16617e7234 Find the GTalk CandidatePair based on its local and remote username. 2011-06-09 14:16:32 +00:00
seb
b687bdb9eb Support of the Google ICE dialect (UDP only for now). 2011-06-09 08:47:22 +00:00
seb
ab5a3f7b00 Handle only one nomination confirmed and thus selection of pair per Component. 2011-06-09 07:10:44 +00:00
seb
b5e2234962 Source code formating for the attribute classes, fix buggy attribute length calculation, add attributes from _old_ TURN draft specification. 2011-06-03 14:39:08 +00:00
seb
768db27837 Fix a possible ConcurrentModificationException in CredentialsManager. 2011-05-26 14:21:49 +00:00
seb
17e931572e Add logs when a pair check fails (received binding error response, non-symmetric response, ...). 2011-05-25 06:53:24 +00:00
seb
518e661a82 Parallelize UPnP search for WANIPConnection and WANPPPConnection. 2011-05-19 06:49:03 +00:00
seb
36415b82c1 Fix typos. 2011-05-13 08:45:13 +00:00
seb
74aaab04a7 Update weupnp library. 2011-05-12 15:51:03 +00:00
seb
e348e8a436 Additionnal logs for UPnP. 2011-05-12 10:11:39 +00:00
seb
44d286cdee Update weupnp lib (bring back HTTP timeout and reducing UPnP broadcast timeout). 2011-04-26 12:36:09 +00:00
seb
9353abd320 Add also the HostCandidate used for UPnP gathering as it is needed for peer reflexive detection. 2011-04-19 15:04:06 +00:00
seb
7dccafc489 Update weupnp lib (that add support for linux-igd), also code formatting and Javadoc fixes. 2011-04-19 08:41:48 +00:00
seb
9f872e3c27 Add weupnp.jar which works correctly on Windows (determine local address of a socket). 2011-02-24 17:24:12 +00:00
seb
0625a6c33a Attempt to read a maximum of 1500 bytes for the TURN ChannelData socket. 2011-02-24 17:03:06 +00:00
seb
1358438efd Addtionnal logs: harvester type and server address for the selected components, and candidate type for each address gathered. 2011-02-24 10:31:01 +00:00
seb
67cd08ad0c Fix an infinite loop if UPnP AddPortMapping action never succeed. 2011-02-17 10:16:11 +00:00
seb
1db2650514 Update UPnP library (Add timeout for HttpURLConnection). 2011-01-13 12:21:26 +00:00
seb
ad79151b1f Add UPnP harvester support. 2010-12-21 10:29:04 +00:00
seb
71c4c28298 Fix a mistake (using HostCandidate instead of RelayedCandidate). 2010-12-20 16:28:59 +00:00
seb
18e6036b97 Add a new nomination strategy which consists in nominate first host or server reflexive candidate. If relayed candidates are first validated, wait some time to see if no host or server reflexive candidates get validated and be nominated instead of relayed ones. Note that this strategy is not the default and thus need to be explicitely set via Agent's setNominationStrategy method to be used. 2010-12-17 17:44:27 +00:00
seb
47d0918dce Add some log outputs. 2010-12-13 17:20:13 +00:00
seb
cfa0e2973d Change Candidate's get/setTurnServerAddress() to get/setRelayServerAddress() to be more generic in naming relays. Typos and text formatting. 2010-12-09 10:29:58 +00:00
damencho
7e868bb3f1 Introduce PacketLogger, implementers can log all received or sent packets by the stack. 2010-12-07 13:44:04 +00:00
seb
15b6780ccf * Fix a bug when the TURN ChannelData data is padded, it results of the ChannelData to be discarded;
* Allow remote candidates to be injected while ICE processing is running;
 * Support different remote ufrag/password for streams.
2010-12-06 16:41:58 +00:00
seb
fc3e411657 Initialize the Binding Response's MESSAGE-INTEGRITY attribute with the same username as the request. Now ice4j should correctly work with Empathy. 2010-11-29 16:22:54 +00:00
seb
a16b8afe12 Add USERNAME and MESSAGE-INTEGRITY in connectivity check's Binding Response. 2010-11-26 16:41:29 +00:00
seb
ed5856810a - Add a missing test about foundation to change \"frozen\" candidate pair state to \"waiting\";
- Nominee for a component are now obtained by looking in \"ValidList\" rather than \"CheckList\";
- Checks that are received before we start ours are triggered immediately when ICE state change to RUNNING;
- Always use \"BASE\" transport address as source for sending and checking STUN request (peer reflexive cases);
- Fix infinite recursivity in DelegatingDatagramSocket;
- Various formatting, typos, 80-line cut and missing javadocs fix.
2010-11-25 16:03:44 +00:00
lubomir.marinov
7de929986c Makes it possible to complete connectivity establishment, create new streams, components and candidates and start a new connectivity establishment for them only. 2010-10-21 19:18:34 +00:00
lubomir.marinov
1d3ce5ee57 Starts the connectivity checks for a CheckList when a triggered check is scheduled. Otherwise, the Agent may run forever. 2010-10-14 19:37:18 +00:00
lubomir.marinov
7ff7ed83e9 Runs the harvests of local candidates performed by multiple CandidateHarvesters for a given Component in parallel in order to achieve faster overall harvesting. Additionally, disables a CandidateHarvester for an Agent when it fails so that it does not slow down the overall harvesting. 2010-10-14 10:41:55 +00:00
lubomir.marinov
3e28058a07 Fixes a suspicious #remove() of a CheckList from a List<IceMediaStream>. 2010-10-12 20:52:19 +00:00
lubomir.marinov
99e0572c06 Modifies the ICE Agent to not self-destruct upon termination and to rather advise explicit preparation for garbage collection. 2010-10-06 08:20:51 +00:00
lubomir.marinov
3f6e5c7564 Fixes warnings, javadocs, formatting. 2010-10-04 07:08:00 +00:00
emcho
a10d5e6687 Adds support for generations 2010-09-28 11:26:00 +00:00
lubomir.marinov
5f4c05d699 Uses StunStack on a per-Agent basis. 2010-09-12 13:17:06 +00:00
lubomir.marinov
3d4de0f547 Enables relay through a TURN server using ChannelData messages. The implementation is not supposed to be active in run-sample because run-sample only sends connectivity checks through the relay and ICE recommends using ChannelData only after ICE has completed. The relay automatically switches from Send/Data indications to ChannelData messages when the first non-STUN message is sent through it. 2010-07-14 19:45:21 +00:00
lubomir.marinov
dea667e8b5 Commits work in progress on relaying through a TURN server using ChannelData messages. The implementation seems to cause Mac OS X Snow Leopard to die so it is committed disabled for the purposes of easy transfer and testing on a more stable operating system. 2010-07-14 17:01:27 +00:00
lubomir.marinov
0bcec0c2f8 Adds/fixes javadocs. 2010-07-14 10:41:28 +00:00
emcho
908f572707 Commits a meaningless modification as obviously there's some kind of a commit competition going on\!\!\! 2010-07-13 13:46:51 +00:00
lubomir.marinov
e06c86a5dc Brings back a .notifyAll() which wasn't supposed to be removed in r228. 2010-07-13 13:39:45 +00:00
lubomir.marinov
63911198a5 Removes a System.err.println. 2010-07-13 13:37:55 +00:00
lubomir.marinov
6bcdd91a09 Reverts the enabling of starting connectivity establishment of the remote peer in the run-sample Ant target. 2010-07-09 15:43:28 +00:00
lubomir.marinov
8928f9daa6 Implements relaying data through a TURN server for RelayedCandidate. 2010-07-09 15:41:07 +00:00
lubomir.marinov
cad31b0304 Nothing really, mostly applies formatting. 2010-07-09 14:58:05 +00:00
seb
0e0e0086d1 Fix javadoc warnings. 2010-07-04 06:46:32 +00:00
lubomir.marinov
9495fe541a Fixes what looks like a race condition related to the starting of a connectivity check on a Candidate pair and processing its Response. 2010-07-01 02:39:19 +00:00