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

Log of /main/reTurn/UdpServer.cxx

Parent Directory Parent Directory | Revision Log Revision Log


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

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: 9465 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: 9402 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: 9475 byte(s)
Diff to previous 10209
reTurn: separate response sending code in preparation for async authentication

Revision 10209 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 13 15:47:55 2013 UTC (6 years, 6 months ago) by sgodin
File length: 9465 byte(s)
Diff to previous 10138
-code cleanup
-query and store local socket info at creation time, so that we it won't throw at runtime 


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: 9417 byte(s)
Diff to previous 10137
-track allocations per connection - reduces map sizes and lookups when TCP/TLS 
 client connections are used

Revision 10137 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 28 18:43:19 2013 UTC (6 years, 6 months ago) by sgodin
File length: 9319 byte(s)
Diff to previous 10131
-merge work from b-counterpath-recon-20130424 with some changes
 - upped receive buffer size from 2048 to 4096
 - added setOnBeforeSocketClosedFp to AsyncSocketBase - Provides an opportunity
   for the app to clean up, e.g., QoS-related data or resources just before 
   the socket is closed
 - OS level Udp socket receive buffer size set to 66560
 - TurnAsyncSocketBase - use dispatch instead of post for send API for
   increased efficiency
 - TurnAsyncSocket - new client side APIs
   - setLocalPassword for checking integrity of incoming STUN messages
   - connectivityCheck for ICE connectivity checks 
   - setOnBeforeSocketClosedFp for QOS cleanup (windows)
   - send API now split into send(To)Framed and send(To)Unframed
   - Queue of guards modified to use a weak functor template instead
   - onBindFailure and onBindSuccess now return the Tuple that failed or succeeded
 - DataBuffer improvements
 - StunMessage - added ice attributes


Revision 10131 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 22 13:33:55 2013 UTC (6 years, 6 months ago) by sgodin
File length: 9303 byte(s)
Diff to previous 9371
-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 9371 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 1 20:30:42 2012 UTC (7 years, 9 months ago) by sgodin
File length: 9267 byte(s)
Diff to previous 9211
-reTurn Server bug fixes
 - fix VS2008 project file to add UserAuthData class
 - log error in UdpServer if failure to bind
 - add StackLog logging of request type when encoding a message
 - added missing request type TurnCreatePermissionMethod to operator<<
 - log hex() version of HMAC keys, since they are binary
-return Client API fixes
 - TurnSocket - ensure we are connected before allowing send
 - Remove warning about 'this' use in initiator list - pointer is only stored
 - Increase allowed send size from 1024 bytes to 2048
 - fix potential memory leak with mActiveRequestMap (TurnAsyncSocket class)
 - ensure retrans timer is stopped when request is removed from map

Revision 9211 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 3 16:46:32 2011 UTC (8 years, 4 months ago) by sgodin
File length: 9054 byte(s)
Diff to previous 8397
-ensure classis stun responses come from the correct socket

Revision 8397 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 14 18:46:21 2009 UTC (10 years, 10 months ago) by sgodin
File length: 9063 byte(s)
Diff to previous 8383
-added lifetime to channel bindings
-added ability for client API's to automatically handle channel binding refreshes
 Note:  This is done at an interval that will be frequent enough to also refresh permissions
-added checks to channel data messages over UDP to ensure packet size is large enough to hold indicated data size
-fixed bug in server logic that caused it always send DataInd instead of Channel data messages
-reTurn is now turn-12 compliant

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: 8714 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, 10 months ago) by sgodin
File length: 8580 byte(s)
Diff to previous 8299
-update a bunch of license blocks from Vovida 2.0 to BSD-3 clause that were supposed to have been changed months ago

Revision 8299 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 19:40:34 2008 UTC (10 years, 11 months ago) by sgodin
File length: 8518 byte(s)
Diff to previous 8297
-added max error code reason size
-fixed some bugs in unknown attribute parsing and encoding - modified to use RFC5389 padding

Revision 8297 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 16:40:45 2008 UTC (10 years, 11 months ago) by sgodin
File length: 8518 byte(s)
Diff to previous 7754
-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 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: 8506 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: 9724 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: 9723 byte(s)
Diff to previous 7511
- 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 7511 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 22 20:06:22 2007 UTC (11 years, 10 months ago) by sgodin
File length: 9740 byte(s)
Diff to previous 7509
-another UdpServer fix

Revision 7509 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 22 19:51:19 2007 UTC (11 years, 10 months ago) by sgodin
File length: 9722 byte(s)
Diff to previous 7501
-fix for reTurn UDP server not correctly identifying the local address

Revision 7501 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 19 21:42:02 2007 UTC (11 years, 10 months ago) by sgodin
File length: 9704 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: 9397 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: 9211 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 (11 years, 11 months ago) by sgodin
File length: 9379 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 (11 years, 11 months ago) by sgodin
File length: 9253 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 (11 years, 11 months ago) by sgodin
File length: 11509 byte(s)
Diff to previous 7405
-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 7405 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 14 22:09:41 2007 UTC (12 years ago) by sgodin
File length: 11431 byte(s)
Diff to previous 7368
Client fixes
- fix handling of DataInd in reTurn client

Server fixes
- fixed a bug in UdpRelayServer that stopped data from being README.txt
- fixed a bug in TlsConnection for reading data



Revision 7368 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 28 21:02:54 2007 UTC (12 years ago) by sgodin
File length: 11419 byte(s)
Diff to previous 7366
-added server handling for udp retransmissions (tid map)
-fixed shared_ptr_from_this handling for TlsConnections
-fix crash if turn deallocation happens immediately after sending data



Revision 7366 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 28 17:34:51 2007 UTC (12 years ago) by sgodin
File length: 9580 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: 9735 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 ago) by sgodin
File length: 10061 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 ago) by sgodin
File length: 9882 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 ago) by sgodin
File length: 9694 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 ago) by sgodin
File length: 8698 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: 8749 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: 8749 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