This is a simple client server program. The client requests for a file to the server and if the file is present on the server server sends it to the client.
I've tried it with sockets and streams, but it's not working properly. Most of the time some data loss occurs and seems very slow. I assume that as the server sends data byte by byte and the client reads the same way and since they are separate programs, the proper sequencing of sending and receiving is not happening. So, is it actually the problem or is there anything else? How to solve it (in the best way)?
Here's my server code:
Here's my client code:
[ May 05, 2005: Message edited by: Mousa A. Rafi ]