[reSIProcate] Appliction Specific TCP Socket
shen jinti
jinti.shen at gmail.com
Wed Oct 18 12:39:29 CDT 2006
hi Ali,
ahh, i'm sorry. :P
i think you can use soap or xml-rpc or ICE(www.zeroc.com). and if you need
transport some binary data with simple way, can use Netxx library.
If you does not like to use some exist libray, this article may be help
with you.
http://www.cs.rpi.edu/courses/sysprog/sockets/sock.html
sincerely,
jinti
2006/10/19, Ali Pey <alipey at gmail.com>:
>
> Hi Shen,
>
> Thank you for your email.
>
> The thing is I don't need the TCP transport for sip messages. I need this
> to send and receive my specific messages not sip or any other protocol.
>
> For instance I need to send a command over TCP to another application and
> it looks like this:
>
> struct command
> {
> int msgId;
> int srcApp;
> int destApp;
> int command;
> etc...
> }
>
> How would I send and receive this over a TCP socket?
>
> I'm trying to do this for interprocess communication that would work for
> different platforms. Is there a better way for interprocess communication
> that is platform independent?
>
> Thanks,
> Ali
>
>
> On 10/18/06, shen jinti <jinti.shen at gmail.com> wrote:
> >
> > hi Ali,
> >
> > resip can use TCP transport.
> > you can try it,
> >
> >
> > SipStack stackUac;
> > DialogUsageManager* dumUac = new DialogUsageManager(stackUac);
> > dumUac->addTransport(TCP, 12005);
> >
> > that mean you will listen a tcp port with 12005. and can send tcp
> > package to you machine with tcp 12005 for somebody.
> >
> > sincerely,
> > jinti
> >
> > 2006/10/18, Ali Pey < alipey at gmail.com>:
> > >
> > > Hi All,
> > >
> > > I need to add a TCP Socket to resiprocate/dum to be used solely for
> > > application specific messaging. Basically I need to send and receive TCP
> > > packets for some internal app to app communication.
> > >
> > > Can someone shed some light on what I need to do?
> > >
> > > Is there an easy way to do this with DUM?
> > >
> > > Thanks,
> > > Ali
> > >
> > >
> > >
> > > _______________________________________________
> > > resiprocate-devel mailing list
> > > resiprocate-devel at list.sipfoundry.org
> > > https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20061019/c18b75cd/attachment.htm>
More information about the resiprocate-devel
mailing list