Commit Graph

  • f08c6546ae Use the local candidate base, if available. boris 2014-09-09 14:45:53 +00:00
  • 65a427cc38 Adds parsing of SSLTCP transport type. paweldomas 2014-09-08 15:12:22 +00:00
  • 8a7f8c1eea Does not retransmit StunClientTransaction-s over TCP. boris 2014-09-05 16:47:03 +00:00
  • 17276fde15 Uses the first received STUN packet instead of waiting for a retransmission. boris 2014-09-05 16:46:57 +00:00
  • 6bc0b7c4de Fixes a bug with the accept thread busy waiting in select(), simplifies code. boris 2014-09-05 16:46:48 +00:00
  • eccf1346c0 Further reduces the average time it takes to clone a DatagramPacket. lubomir.marinov 2014-09-05 15:47:37 +00:00
  • a34e108b2d Significantly reduces the time to clone a DatagramPacket. lubomir.marinov 2014-09-05 13:18:50 +00:00
  • fd616daa1c Fixes warnings, manually formats source code. lubomir.marinov 2014-09-05 13:17:16 +00:00
  • e497af1850 Adds support for google's ssltcp. boris 2014-09-04 13:28:04 +00:00
  • 618ce97c7c Add a DTLS datagram filter. boris 2014-09-03 18:06:17 +00:00
  • 91d9b1dff6 Suppress a serialization warning. boris 2014-09-03 14:34:53 +00:00
  • 6932bd407c When a SocketChannel is in use, reads using the SocketChannel directly instead of through its InputStream. boris 2014-09-03 14:34:45 +00:00
  • 3b7a913eac Avoid unnecessary coping. boris 2014-09-03 14:34:38 +00:00
  • 9c70d917de Minor: fix log message. boris 2014-09-03 14:34:32 +00:00
  • e4c914b943 Don't add pairs when the remote port is 0 (as can be when a remote cand is an active TCP cand). boris 2014-09-03 14:34:26 +00:00
  • caea84ac07 Fix an exception in MultiplexingTcpHostHarvester. boris 2014-09-03 14:34:20 +00:00
  • 58b40d184f Uses List instead of Enumeration. boris 2014-09-03 14:34:12 +00:00
  • 04e0befbef Clarifies, clean the source code. Adds javadocs. Fixes warnings. lubomir.marinov 2014-09-02 13:17:17 +00:00
  • 40541920f4 Adds a harvester that binds to a specific local TCP port and demultiplexes the accepted connections between the components that used it. boris 2014-08-29 08:28:13 +00:00
  • c23438f8c2 Add a CandidateTcpType field to candidate. boris 2014-08-29 08:28:04 +00:00
  • 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. boris 2014-08-29 08:27:56 +00:00
  • 3c34615d2b Adds an InputStream to MultiplexedSocket. boris 2014-08-29 08:27:49 +00:00
  • c95952f0b2 More thorough checks for RTP packets, make sure that no false-positives come from DTLS for example (fix inaccurate loss calculations and "RTP loss >5%" messages being logged). boris 2014-08-29 08:27:42 +00:00
  • be112c1aae Saves trickled remote candidates in the remoteCandidate list in Component. Checks for duplicates before adding new candidates. boris 2014-08-29 08:27:36 +00:00
  • cf6d78208f Appends a representation of the system time to the generated ufrag-s, in order to decrease the chance of local collisions. boris 2014-08-29 08:27:30 +00:00
  • c0e7cd56d6 Adds methods to access the sockets of a CandidatePair. boris 2014-08-29 08:27:20 +00:00
  • 5108d99220 Minor comment and whitespace fixes. boris 2014-08-29 08:27:11 +00:00
  • 595727b406 Removes the 'transport' field from Component, because an ICE component might have candidates with different protocols. Removes a duplicate method. boris 2014-08-29 08:27:03 +00:00
  • 9b9fbb71d0 Minor cleanup. boris 2014-08-29 08:26:51 +00:00
  • eac04a777d Adds createConnectionIdAttribute() in AttributeFactory class. Patch by Aakash Garg. paweldomas 2014-08-21 16:27:12 +00:00
  • 5d10a21a96 Adds getter for localAddress in BlockingRequestSender. Patch by Aakash Garg. paweldomas 2014-08-21 16:07:55 +00:00
  • f16e86d1a6 Adds setStunStack setter method in Agent class. Patch by Aakash Garg. paweldomas 2014-08-21 16:03:21 +00:00
  • 97f2938200 Adds implementation of equals and hashCode methods to LongTermCredential class. Patch by Aakash Garg. paweldomas 2014-08-21 16:00:18 +00:00
  • 24fbe7213c Fixes bug with offset not being taken into account when decoding LifetimeAttribute. Patch by Aakash Garg. paweldomas 2014-08-21 15:52:08 +00:00
  • c25c0915b5 Adds a method that allows to check if there is a MultiplexedDatagramSocket for a particular DatagramPacketFilter. boris 2014-08-05 14:06:30 +00:00
  • 08766354dc Implements RtcpDemuxPacketFilter. boris 2014-07-30 10:41:54 +00:00
  • 2da5150e14 Minor formatting/spelling fixes. boris 2014-07-30 10:41:46 +00:00
  • bc8ab03637 Fixes the compilation on JDK 8. lubomir.marinov 2014-07-25 06:14:43 +00:00
  • a3caa371aa Fixes Agent.getHarvestCount() to actually return count and not duration/time. Reported by Luca Antonioli. lubomir.marinov 2014-07-23 11:10:21 +00:00
  • ee4721960b Ensures that the lengths of the values of the ice-ufrag and ice-pwd attributes conform to RFC 5245 15.4. "ice-ufrag" and "ice-pwd" Attributes. Reported by Philipp Hancke. lubomir.marinov 2014-07-22 22:05:28 +00:00
  • 3e6ddf0f16 PseudoTCP performance improvements - patch by Carl Hasselskog. paweldomas 2014-06-26 19:26:16 +00:00
  • 8949f3f318 Adds method to generate Reservation-Token and overrides toString method in ReservationTokenAttribute. Patch by Aakash Garg. paweldomas 2014-06-15 19:20:52 +00:00
  • d6b41e2251 Adds Constructor overload, sendChannelData method, sendUdpMessage method, and other functions for TurnStack and relaying in StunStack. Adds new messageEvent classes with their listener interfaces. Patch by Aakash Garg. paweldomas 2014-06-15 19:10:50 +00:00
  • 30b940732f Adds function to check if message is ChannelData Message in ChannelData class. Patch by Aakash Garg. paweldomas 2014-06-15 18:27:42 +00:00
  • c15ad072e0 Adds createDataIndication method to MessageFactory. Patch by Aakash Garg. paweldomas 2014-06-15 12:47:06 +00:00
  • 19890097f4 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. paweldomas 2014-06-10 16:33:16 +00:00
  • 7dda8ef7b2 Adds method overload of sendRequestAndWaitForResponse and changes class access modifier. Patch by Aakash Garg. paweldomas 2014-06-09 19:59:50 +00:00
  • 33030a48ec Fixes bug in decodeAttributeBody and adds static fields in RequestedTransportAttribute class. Patch by Aakash Garg. paweldomas 2014-06-09 19:52:57 +00:00
  • d8a5d8016d Adds ALLOCATE_REFRESH_REQUEST request code field to Message class. Patch by Aakash Garg. paweldomas 2014-06-09 19:40:15 +00:00
  • 9739220564 Renames createPermissionResponse and fixes createChannelBindErrorResponse in MessageFactory. Patch by Aakash Garg. paweldomas 2014-06-09 19:35:21 +00:00
  • dce1981d7c Fixes bug in decode method of ChannelNumberAttribute. Adds method for validating channel value range. Patch by Aakash Garg. paweldomas 2014-06-09 06:28:32 +00:00
  • 7ccec75461 Updates the HostCandidateHarvester class Javadoc according to the Jitsi coding conventions. gp 2014-06-03 07:56:31 +00:00
  • 3b15ee7cb6 Fixes yet another deadlock involving StunClientTransaction#cancel(boolean). Reported by Carl Hasselskog. lubomir.marinov 2014-06-02 18:40:02 +00:00
  • 53d69cd963 Moves the StackProperties.initialize() method to HostCandidateHarvester.initializeInterfaceFilters(). Don\'t die if the host candidate interface filters have not been initialized. Instead, initialize them on demand. gp 2014-05-30 15:02:31 +00:00
  • d8552464e0 Adds a StackProperties.initialize() method that initializes and validates the allowed/blocked interface list. gp 2014-05-28 12:29:16 +00:00
  • e14e8b6a9f Adds two configuration properties that give the possibility to define lists of allowed or lists of blocked interfaces for host candidate allocation. gp 2014-05-28 10:27:59 +00:00
  • ed918505b8 Fixes 'Deadlock in StunStack/StunClientTransaction' reported by Carl Hasselskog. lubomir.marinov 2014-05-27 21:22:50 +00:00
  • 3dc113edd8 Fixes warnings. Applies formatting. lubomir.marinov 2014-05-27 21:21:26 +00:00
  • ec427382e9 Renames Message.addAttribute method to putAttribute. paweldomas 2014-05-27 08:48:13 +00:00
  • fa9ccc92ef Adds default overloads of the methods for creating permission error responses. Patch by Aakash Garg. paweldomas 2014-05-13 19:52:55 +00:00
  • e48e56303c Adds unit test for TURN attributes and minor fixes. Patch by Aakash Garg. paweldomas 2014-05-13 19:49:45 +00:00
  • 67033a0f70 Adds new STUN methods to be used by TURN server. Patch by Aakash Garg. paweldomas 2014-05-10 14:20:57 +00:00
  • 92b64183d6 Adds connection ID and requested address family attributes to be used by TURN server. Patch by Aakash Garg. paweldomas 2014-05-10 13:58:02 +00:00
  • a63f66ac12 Adds error codes to be used by TURN server. Patch by Aakash Garg. paweldomas 2014-05-10 13:36:35 +00:00
  • 4f23fb021d Determines whether ice4j is running on an Amazon EC2 instance by trying to connect via HTTP. boris 2014-05-07 15:22:19 +00:00
  • b8b11d13b5 Cleans up the background Threads associated with TURN candidates more explicitly/aggressively/thoroughly in an attempt to mitigate a leak of such reported by Enrico Marocco. lubomir.marinov 2014-04-29 20:28:28 +00:00
  • 6370fbca8f Improves logging. boris 2014-03-07 20:02:07 +00:00
  • fa3e6c8357 Adds support for socket timeouts. Contributed by Enrico Marocco emcho 2014-03-04 11:26:39 +00:00
  • 945dcae9c0 Calling ec2metadata seems to be causing issues on some machines. Changes detection to just work by detecting if it's there. emcho 2014-03-02 02:37:44 +00:00
  • ed46200858 Fixes warnings about unused imports. lubomir.marinov 2014-02-24 07:34:49 +00:00
  • 3707dbc975 adds a NAT mapping harvester test case emcho 2014-02-21 10:52:08 +00:00
  • 55082823dd Adds a harvester for Amazon AWS EC2 instances. Adds a mapping harvester for manual configuration on NATed servers. Removes legacy support for Google ICE. Hooray emcho 2014-02-21 00:45:49 +00:00
  • e597dac9e6 Fixes warnings. lubomir.marinov 2014-02-18 06:41:34 +00:00
  • 0278d355f9 Fixes a deadlock between Agent.free() and StunClientTransaction observed in Jitsi Videobridge. lubomir.marinov 2014-02-13 12:19:49 +00:00
  • 2483f4dec8 Fixes run-xx targets. paweldomas 2014-02-13 08:51:31 +00:00
  • 9eb8f7ec0a Removes test classes from output jar file. paweldomas 2014-02-11 10:38:23 +00:00
  • 58f9e29c82 Uses a single Thread per StunStack to expire StunServerTransactions in order to reduce the total number of utilized Threads. lubomir.marinov 2014-02-11 07:54:43 +00:00
  • 987512ede1 Uses a Thread pool for StunClientTransaction in order to improve performance. lubomir.marinov 2014-02-10 07:38:55 +00:00
  • d5c2fa6c8d Fixes the Ant target rebuild, warnings. lubomir.marinov 2014-01-03 12:13:52 +00:00
  • 4c132cccd6 Simplifies code for the purposes of readability. lubomir.marinov 2014-01-03 11:23:41 +00:00
  • 8b3280cf93 Work in progress on emission Trickle ICE support emcho 2013-12-03 12:33:16 +00:00
  • ce75f1e7b1 Logs a couple of debug messages to warn about potential programming errors. lubomir.marinov 2013-11-29 19:57:16 +00:00
  • 062e335b38 Prevents host candidates with loopback addresses. Patch by Emil Ivov. lubomir.marinov 2013-11-26 12:48:37 +00:00
  • 1071e0890c Commits Jakub Adamek patch that improves logging and fixes reaction on InterruptedException. paweldomas 2013-11-21 19:02:25 +00:00
  • 9964e3f296 Extracts PTCP into separate test suite. Adds debug PTCP sample target. paweldomas 2013-11-21 18:55:20 +00:00
  • afd937ee54 Commits Carl Hasselskog patch for feeding PTCP stack's clock with valid time values. paweldomas 2013-11-21 18:51:46 +00:00
  • 24a6f9a95d Commits comibned Carl Hasselskog and Jakub Adamek patches for PTCP deadlock fix. paweldomas 2013-11-21 18:41:42 +00:00
  • 137de02c4f Fixes an issue which could cause CPU starvation while receiving from MultiplexingDatagramSocket. lubomir.marinov 2013-11-20 08:55:51 +00:00
  • 140de712e7 Returns null instead of "null" String from getHostAddress. Adds a check for null in toString(). paweldomas 2013-11-14 09:02:30 +00:00
  • a0f6622934 Fixes typos, warnings, repetitive method invocations. lubomir.marinov 2013-11-13 21:46:37 +00:00
  • a83c5b4be5 Optimizes the calculation of CandidatePair priority. lubomir.marinov 2013-11-13 21:45:04 +00:00
  • c73c5ef83d Fixes a failure to close a Socket. lubomir.marinov 2013-11-13 21:44:08 +00:00
  • 8cfe630e79 Loops on copy of parent checklist to prevent ConcurrentModificationException. paweldomas 2013-11-13 20:48:21 +00:00
  • f0cb093ff3 Fixes NPE when InetAddress is null in TransportAddress.getHostAddress(). paweldomas 2013-11-13 20:43:04 +00:00
  • d304978b6d Applies Jakub Adamek patch that adds NO_KEEP_ALIVES property which can be used to disable STUN keep alives. paweldomas 2013-09-18 07:20:33 +00:00
  • d61650957a Applies Jakub Adamek patch that fixes Pseudo TCP on Android, improves logging and fixes serious bug in the int read() method. paweldomas 2013-09-18 06:53:26 +00:00
  • 08633a3b66 Applies Jakub Adamek patch that skips unnecessary nomination. paweldomas 2013-09-17 11:54:32 +00:00
  • db9a4f2deb Applies Jakub Adamek fix for recognizing TURN packets. paweldomas 2013-09-17 11:44:21 +00:00
  • 25de80c37c Applies Jakub Adamek patch that increases keep alive Tr value from 3 to 15 seconds recommended as minimum in RFC6263. paweldomas 2013-09-17 11:37:25 +00:00
  • f959ccfeb1 Applies logging improvements patch submitted by Jakub Adamek. paweldomas 2013-09-17 11:20:51 +00:00