Re: [Siproxd-users] TCP support?
Status: Beta
Brought to you by:
tries
From: Thomas R. <tr...@gm...> - 2004-04-24 15:53:25
|
Hi Anders, You may want to use tha latest snapshot to start with (I just cleaned up some things around sending/receiving SIP packets). For implementing TCP transport, I think changes can be limited to sock.c. sipsock_listen() - create socket and listen on TCP port sipsock_wait() - include active TCP sockets to fd_set - accept() new connections - close() expired TCP connections (Criteria? In the 1st run this will probably a timeout of 'n' seconds without traffic) sipsock_read() - read one SIP message from transport (UDP or TCP) sipsock_send() - figure out the transport protocol to use *) - send to destination *) I did not yet look through RFC3261 how to determine the transport to be used for sending. I'll let you figure how to do this ;-) I hope this may help as a starting point. Looking forward to see some what will come out. Regards, /Thomas On 24 Apr, Quest wrote: > Thomas Ries <tr...@gm...> writes: > >> up to now, no TCP support is planned. But I'll put it on the >> nice-to-have list. > > I'll take a shot at implementing it. > >> Does this UA you mention *only* support TCP? This sounds rather strange >> to me. > > So it seems. It's not that I must absolutely use that particular UA. > It's more of an excuse to get into the SIP protocol. :) > > The client is called ActiveContacts. > -- > Anders "Quest" Qvist > > "Alvays remember: _any_ plan vere you lose you hat is a bad plan." > > > ------------------------------------------------------- > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek > For a limited time only, get FREE Ground shipping on all orders of $35 > or more. Hurry up and shop folks, this offer expires April 30th! > http://www.thinkgeek.com/freeshipping/?cpg=12297 > _______________________________________________ > Siproxd-users mailing list > Sip...@li... > https://lists.sourceforge.net/lists/listinfo/siproxd-users -- GnuPG: pub 1024D/87BCDC94 2000-03-19 Thomas Ries <tr...@gm...> - Fingerprint = 13D1 19F5 77D0 4CEC 8D3F A24E 09FC C18A 87BC DC94 - Key via pgp.openpkg.org / http://www.ries.ch.vu/87BCDC94.pub VoIP: sip:174...@pr... |