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