Re: Try to link MQ server via http proxy,but data format seems is wrong...

2010-06-24 Thread Timothy Bish
On Wed, 2010-06-23 at 20:07 -0700, alanchb wrote: I download the CMS source code,and modified the TcpSocket::connect function in TcpSocket.cpp in order to tunnel http proxy.Below is the code I modified or added: void TcpSocket::connect(const char* host, int port, int timeout) throw (

Re: Try to link MQ server via http proxy,but data format seems is wrong...

2010-06-24 Thread alanchb
Thank you for your reply. But that works well in my test program.In that program I wrote a TCP/IP client which connects remote TCP/IP server via HTTP proxy,and it can send/receive message with remote server successfully.The method I used is exactly the same used in ActiveMQ-CPP. Timothy Bish

Try to link MQ server via http proxy,but data format seems is wrong...

2010-06-23 Thread alanchb
I download the CMS source code,and modified the TcpSocket::connect function in TcpSocket.cpp in order to tunnel http proxy.Below is the code I modified or added: void TcpSocket::connect(const char* host, int port, int timeout) throw ( SocketException ) { try{ if( isConnected() ) {