| View previous topic :: View next topic |
| Author |
Message |
mustafa korkmaz Guest
|
Posted: Mon Jan 17, 2005 2:40 pm Post subject: How does the TidservercompressionIntercept works? |
|
|
I dont want to change my structures of packages and source codes.
is it posible to compress all client and server packages that transmitted
to each other without changing main source code?
I will not change any existing source code and I only add simple
codes.is it posible?
And so My ALL packages that transmitted over network will been
compressed..
And in the future if I dont want to use compression option it
will be enough to
calcel only all lines related with compressionIntercept in the
source code and I will
not change main code.
It is posible?
If All of them are posible is it enough to add like below...I
didnt try yet.
Tcpserver.intercept := TidSErvercompressionIntercapt.create(....)...
and
Tcpserver's ondisconnect event:
athread.connection.intercept.free;
athread.connection.intercept := nil;
And I will use TidcompressionIntercept component in my client
program.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Jan 17, 2005 6:32 pm Post subject: Re: How does the TidservercompressionIntercept works? |
|
|
"mustafa korkmaz" <mkorkmaz42 (AT) hotmail (DOT) com> wrote
| Quote: | I dont want to change my structures of packages and source
codes. is it posible to compress all client and server packages
that transmitted to each other without changing main source code?
|
Yes. That is exactly what Indy's Intercept components do.
| Quote: | If All of them are posible
|
They are.
| Quote: | is it enough to add like below...
|
Yes, with one difference - do not free the Intercept in the server's
OnDisconnect event. The server already does that for you after the
OnDisconnect event handler exits..
Gambit
|
|
| Back to top |
|
 |
|