Re: [reSIProcate] Appliction Specific TCP Socket
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@xxxxxxxxx>: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@xxxxxxxxx> 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