BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How does the TidservercompressionIntercept works?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
mustafa korkmaz
Guest





PostPosted: Mon Jan 17, 2005 2:40 pm    Post subject: How does the TidservercompressionIntercept works? Reply with 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?
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





PostPosted: Mon Jan 17, 2005 6:32 pm    Post subject: Re: How does the TidservercompressionIntercept works? Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.