Re: TCP support?

Thomas Ries <[email protected]> Sat, 24 Apr 2004 17:53:10 +0200 (CEST)
Newsgroups gmane.network.siproxd
Message-ID <[email protected]>
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 <[email protected]> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/siproxd-users

-- 
GnuPG: pub  1024D/87BCDC94 2000-03-19 Thomas Ries <[email protected]>
-      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:17476691342-rne+wJe3e/u3Jhga2bR/9VaTQe2KTcn/@public.gmane.org
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAio1pCfzBioe83JQRArTkAJ9tlH+xrui29lR2z6UHz6Odnz3vWwCfWd6R
fwZD+3R64KYRMMYk8Ai448Y=
=ILgL
-----END PGP SIGNATURE-----