Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indy TCPServer compression

Status
Not open for further replies.

Griffyn

Programmer
Jul 11, 2002
1,077
AU
Hi all,

I have two programs that talk via idTCPServer and idTCPClient. They work fine, except when I tried to add compression to the connection.

The idTCPClient one was easy, just drop the idCompressionIntercept component on the form, and link the idTCPClient.Intercept property to it.

The idTCPServer one was a bit tricky, because the idCompressionIntercept component isn't applicable to it, and I finally found one called idServerCompressionIntercept that works. It didn't appear on the palette, so I Created it manually in the forms OnCreate event, and linked the idTCPServer.Intercept property, and then Freed it in the OnDestroy method. Works, almost too well....

I've tracked this, and determined that the Client connects to the server *once*, but the Server receives *two* connections and receives the same data for each. When I remove both the CompressionIntercepts, the Server receives one connection as it should.

Can anyone help me out? I would really like to use compression here. Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top