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.
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.