/[resiprocate]/main/reTurn/RequestHandler.cxx
ViewVC logotype

Log of /main/reTurn/RequestHandler.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 10796 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 31 01:05:05 2013 UTC (5 years, 10 months ago) by Dpocock
File length: 38073 byte(s)
Diff to previous 10779
reTurn: add support for configuring software name header in STUN packets

Revision 10779 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 24 01:26:14 2013 UTC (5 years, 10 months ago) by Dpocock
File length: 38216 byte(s)
Diff to previous 10712
reTurn: support for hashed passwords in user database file

Revision 10712 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 5 10:50:22 2013 UTC (5 years, 11 months ago) by dpocock
File length: 38215 byte(s)
Diff to previous 10481
reTurn: more verbose warning when user or realm unrecognised

Revision 10481 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 12 07:59:36 2013 UTC (6 years, 2 months ago) by dpocock
File length: 38117 byte(s)
Diff to previous 10473
reTurn: revert commits 10472 and 10473, now on branch b-reTurn-async

Revision 10473 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 11 18:41:10 2013 UTC (6 years, 2 months ago) by dpocock
File length: 38175 byte(s)
Diff to previous 10472
reTurn: process STUN messages asynchronously

Revision 10472 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 11 16:01:54 2013 UTC (6 years, 2 months ago) by dpocock
File length: 38135 byte(s)
Diff to previous 10219
reTurn: separate response sending code in preparation for async authentication

Revision 10219 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 20 20:59:51 2013 UTC (6 years, 6 months ago) by sgodin
File length: 38117 byte(s)
Diff to previous 10218
-short term authentication makes no sense for a TURN server, since credential information
 needs to be exchanged out of band (ie. as with ICE) - remove short term auth option from
 return server - Long Term authentication is enabled by default

Revision 10218 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 20 20:16:37 2013 UTC (6 years, 6 months ago) by sgodin
File length: 40362 byte(s)
Diff to previous 10213
-revert bad change

Revision 10213 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 18 19:33:32 2013 UTC (6 years, 6 months ago) by sgodin
File length: 40119 byte(s)
Diff to previous 10208
-optimization to not calculateHmacKey multiple times

Revision 10208 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 12 20:47:46 2013 UTC (6 years, 6 months ago) by dpocock
File length: 40200 byte(s)
Diff to previous 10138
reTurn: read user/password data from a file specified by UserDatabaseFile (contributed by Catalin Usurelu)

Revision 10138 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 28 19:58:33 2013 UTC (6 years, 6 months ago) by sgodin
File length: 39946 byte(s)
Diff to previous 10131
-track allocations per connection - reduces map sizes and lookups when TCP/TLS 
 client connections are used

Revision 10131 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 22 13:33:55 2013 UTC (6 years, 7 months ago) by sgodin
File length: 39376 byte(s)
Diff to previous 9055
-improved diagnostics in RequestHandler - print senders tuple with errors
-detect port in use errors when creating relay
-move permission checking into TurnAllocation object for better encapsulation
-TCP/TLS Server classes - ensure we try to accept future connections if we
 receive an error indicating we ran out of file descriptors
-TLS/UDP Servers classes - throw on errors in constructor
-TurnAllocation/UdpRelayServer - added flags so that some errors only log 
 a Warning level once, then will log at Debug level after - this helps to 
 avoid flooding logs with Warning level messages



Revision 9055 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 11 19:32:30 2011 UTC (8 years, 8 months ago) by sgodin
File length: 37892 byte(s)
Diff to previous 8539
-allow multiple XOR_PEER_ADDRESS in Create Permission requests - thanks to Anshuman

Revision 8539 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 29 21:42:56 2009 UTC (10 years, 3 months ago) by jgeras
File length: 37685 byte(s)
Diff to previous 8529
fixed a bug in processTurnAllocateRequest that led to reTurnServer giving "unauthorized" errors (bracket and comma operator issue)

Revision 8529 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 25 17:40:10 2009 UTC (10 years, 3 months ago) by sgodin
File length: 37726 byte(s)
Diff to previous 8408
-pad the content of the SOFTWARE header so that we are on a 4 byte boundary for size 
  - this prevents STUN messages from reTurn showing up in Wireshark as malformed packets 
  - Note: Wireshark is assuming older RFC3489 message sizing rules
-fixed some typos in command line parameters help text

Revision 8408 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 28 21:06:58 2009 UTC (10 years, 9 months ago) by sgodin
File length: 37407 byte(s)
Diff to previous 8383
-added server certificate hostname validation support for clients
-added reTurn config object for server
-updated sample certs in reTurn to use a certificate with SubjectAltName


Revision 8383 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 8 02:36:06 2009 UTC (10 years, 10 months ago) by sgodin
File length: 37250 byte(s)
Diff to previous 8367
-more updates to move reTurn towards draft-behave-turn-12
-modified channel number range to 0x4000-0x7fff
-handle channel bind errors in async client
-remove allocation if 437 to Refresh request in clients
-implemented CreatePremission method
-return error if Don't Fragment bit is set (at least until DF is implemented)
-ensure reservation tokens can only allocate reserved ports numbers
-removed bandwidth attribute from responses
-verify channel number in channel bind request is in valid range
-allow starting server with no command line parameters




Revision 8367 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 16 18:10:49 2008 UTC (10 years, 11 months ago) by sgodin
File length: 33376 byte(s)
Diff to previous 8365
-update a bunch of license blocks from Vovida 2.0 to BSD-3 clause that were supposed to have been changed months ago

Revision 8365 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 14 20:28:08 2008 UTC (10 years, 11 months ago) by sgodin
File length: 33314 byte(s)
Diff to previous 8311
-updated stun/turn message parsing and attribute naming to behave-turn-12

Revision 8311 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 24 00:46:22 2008 UTC (10 years, 11 months ago) by sgodin
File length: 33360 byte(s)
Diff to previous 8308
-final updates for RFC5389 support
-updated README.txt to reflect RFC5389 updates and TODO's
-allow command line option to configure independent port for STUN/TURN over TLS
-modified BindRequest handling on server to look for StunMagic cookie and add 
 XOR mapped address vs Mapped Address appropriately

Revision 8308 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 22 21:57:52 2008 UTC (11 years ago) by sgodin
File length: 33116 byte(s)
Diff to previous 8301
-added checking for unknown comprehension-required attributes and sending 420 response

Revision 8301 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 20:10:43 2008 UTC (11 years ago) by sgodin
File length: 32470 byte(s)
Diff to previous 8297
-more RFC5389 updates
  -added Software header to client requests
  -changed TCP request timeout to 39500ms as per RFC5389


Revision 8297 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 16:40:45 2008 UTC (11 years ago) by sgodin
File length: 32464 byte(s)
Diff to previous 8136
-made stream output resipfaststream friendly
-started update from RFC3489-bis11 to RFC5389
-renamed Server attribute to Software
-ensure if an attribute appears more than once, then the duplicates are ignored
-ensure encoding/decoding of attribute padding is RFC5389 compliant
-removed RefreshInterval attribute
-fixed some ipv6 parsing problems



Revision 8136 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 23 17:40:12 2008 UTC (11 years, 4 months ago) by sgodin
File length: 32447 byte(s)
Diff to previous 7764
-changed Wrong Credentials error code from 438 to 441
-removed client dependency on the channel number being present in the channel bind response


Revision 7764 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 11 13:40:15 2008 UTC (11 years, 5 months ago) by sgodin
File length: 32443 byte(s)
Diff to previous 7754
comment corrections

Revision 7754 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 26 21:55:31 2008 UTC (11 years, 5 months ago) by sgodin
File length: 32438 byte(s)
Diff to previous 7526
-updated return from behave-turn-05 to behave-turn-07
  - Highlights...
  - removed 4-byte framing for all TURN messaging
  - Uses new Channel Bind mechanism
  - new allocation props header, and reservation token header
  - move requested ip address header
-synchronous reTurn client implementation used asio::socket::cancel which now
 requires ASIO_ENABLE_CANCELIO define on windows platforms in asio version 1.0.0
-updated reflow for reTurn changes


Revision 7526 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 9 22:31:26 2008 UTC (11 years, 10 months ago) by sgodin
File length: 31736 byte(s)
Diff to previous 7521
-optimized some shared pointer passing

Revision 7521 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jan 6 18:27:47 2008 UTC (11 years, 10 months ago) by sgodin
File length: 31735 byte(s)
Diff to previous 7513
- reTurn - optimized some data buffer copies - uses new DataBuffer class instead of resip::Data.cxx
- added new TestRtpLoad test program
- made TurnAsyncSocket callbacks thread safe
- implemented Long Term authentication in reTurn Server and AsyncClient APIs - note: Syncronous client does not support this yet
- added better logging on missing TLS files startup errors
- fixed looping bug in shutting down Udp relay server

Revision 7513 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 22 23:30:21 2007 UTC (11 years, 11 months ago) by sgodin
File length: 31151 byte(s)
Diff to previous 7511
-updated some reTurn server code for rfc3489-bis13

Revision 7511 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 22 20:06:22 2007 UTC (11 years, 11 months ago) by sgodin
File length: 31747 byte(s)
Diff to previous 7501
-another UdpServer fix

Revision 7501 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 19 21:42:02 2007 UTC (11 years, 11 months ago) by sgodin
File length: 31748 byte(s)
Diff to previous 7476
-ServerRegistration.cxx - remove compiler warning
-BasicCall.cxx - fixed typo
-reTurn - use resip logging subsystem
-reTurn - code cleanup for converstion to/from StunAtrAddress and StunTuple
-OpenSSLInit - make sure locking function does not get called after de-initialization
 - this is possible on applications that use rutil with openSSL and openSSL from a different library


Revision 7476 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 2 19:35:56 2007 UTC (11 years, 11 months ago) by sgodin
File length: 36869 byte(s)
Diff to previous 7425
- added retransmit and request timeout timers to async sockets
- made Async Socket calls thread safe
- Added WIN32 memory leak detection to server and test client

Revision 7425 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 25 22:31:16 2007 UTC (11 years, 11 months ago) by sgodin
File length: 36835 byte(s)
Diff to previous 7423
- asynchronous reTurn client work started - not completed yet

Revision 7423 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 23 01:13:27 2007 UTC (12 years ago) by sgodin
File length: 36819 byte(s)
Diff to previous 7418
-completed restructuring of TCP and TLS server - now working again
-added support for STUN TCP and STUN TLS server (on top of TURN TCP and TURN TLS)

Revision 7418 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 21 22:28:22 2007 UTC (12 years ago) by sgodin
File length: 36679 byte(s)
Diff to previous 7408
-major restructuring in preparation for async client api
-optimized data copying
-Tcp and Tls servers currently disabled - still need some work to update to new structure
-fix in client handling of channel number

Revision 7408 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 18 19:40:48 2007 UTC (12 years ago) by sgodin
File length: 36614 byte(s)
Diff to previous 7399
-updated reTurn to submitted turn-05 draft
  - removed fingerprint attribute from turn methods
  - modified channel number from 8 to 16 bits
  - made starting channel number random
  - implemented Turn Refresh Method

Revision 7399 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 3 19:02:42 2007 UTC (12 years ago) by sgodin
File length: 38705 byte(s)
Diff to previous 7398
-allow client to handle binding requests
-allow client and server to handle binding indications

Revision 7398 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 3 18:02:07 2007 UTC (12 years ago) by sgodin
File length: 38553 byte(s)
Diff to previous 7395
-updated ASIO from 0.3.8 RC3 to 0.3.8 release
-refactored client api
 - connect call is required before sending stun/turn requests
 - new set usernameAndPassoword api
 - removed stunaddress/port and username/password from createAllocation and bindRequest

Revision 7395 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 2 21:42:41 2007 UTC (12 years ago) by sgodin
File length: 38623 byte(s)
Diff to previous 7366
-implemented 3489-bis11 bind request on client api
-implemented synchronous DNS hostname resolution for client api
-implemented automatic client allocation refreshes
-fixed client TCP socket reading to handle TCP messages that are received in multiple packets
-cleanup up TurnAllocation accessors
-implemented proper xor handling for turn address attributes


Revision 7366 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 28 17:34:51 2007 UTC (12 years ago) by sgodin
File length: 38848 byte(s)
Diff to previous 7365
-fixed eol-style

Revision 7365 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 28 16:52:18 2007 UTC (12 years ago) by sgodin
File length: 39386 byte(s)
Diff to previous 7355
-fixed TLS Server so that first TLS connection does not fail
-enhanced TestClient with RemotePeer socket
-fixed misc client side bugs
-cleanup RFC3489 back compat support so that StunMessage doesn't carry info
-fix for peer->client framed data

Revision 7355 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 24 20:54:56 2007 UTC (12 years, 1 month ago) by sgodin
File length: 39524 byte(s)
Diff to previous 7348
Client side behave-turn-05 implemented - partially tested

Revision 7348 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 22 16:52:21 2007 UTC (12 years, 1 month ago) by sgodin
File length: 39524 byte(s)
Diff to previous 7346
- completed Server coding for behave-turn-05 channels (untested)
- client implementation still pending

Revision 7346 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 22 02:43:23 2007 UTC (12 years, 1 month ago) by sgodin
File length: 37986 byte(s)
Diff to previous 7335
-begin update to behave-turn-05 (use of Channel Numbers) - not yet complete

Revision 7335 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 17 13:15:57 2007 UTC (12 years, 1 month ago) by sgodin
File length: 38323 byte(s)
Diff to previous 7322
- added asio headers to vsproj for easier searching of asio source
- fixed StunMessage constructor to avoid passing in temporary objects

Revision 7322 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 14 21:00:24 2007 UTC (12 years, 1 month ago) by sgodin
File length: 38185 byte(s)
Diff to previous 7321
Modifications for linux build.

Revision 7321 - (view) (download) (annotate) - [select for diffs]
Added Sun Oct 14 18:18:46 2007 UTC (12 years, 1 month ago) by sgodin
File length: 38183 byte(s)
- initial checkin of reTurn project - Stun/Turn Server and Client Library
- see README.txt for more info and status

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27