> I want to read buffer from files then compress after that > send to client . Is that model possible
Yes. But also beware that compression is a blocking operation, during which time the server thread will stall. The worse case is compressing a DVD image of 4 gigs which takes two or more minutes which is clearly fatal for a server. Note this blocking does not really matter for a client, since it's not doing much else. Even on a quad core processor, the server is only using one thread and thus one core. So you either need to create a multi-thread custom server, run the compression in threads (which is exactly what the ICS FTP server does) or run say four separate servers on the same processor, load sharing and some redundancy if one locks up. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be