TCP/IP client server example to copy a file from server

Hi,
I need to write a TCP server that allows a client to copy a file from the server side to the client side using TCP Sockets. If file does not exist the TCP server should close the connection and log an error message to a file. And program should handle multiple request concurrently. The server should also maintain a count of total number of requests that arrived at the server and the number of requests for which the requested file existed.
I have just starting working on Networking ,I m new to this area .Please help in writing code or if code not possbel Pseudo Code.

Thanks a lot in advance.
Sharada.
sharadaAsked:
Who is Participating?
 
ssnkumarCommented:
Here are few more links:
http://www2.cs.uregina.ca/~hamilton/courses/430/notes
http://www.columbia.edu/kermit/ck80.html
http://pont.net/socket

If you have specific queries/problems while coding, do let us know......we will discuss and try to solve.....

Hope this helps......
0
 
gheistCommented:
No need to reinvent the wheel - the protocol is called ftp.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
sasha_pCommented:
Which language are you using?
0
 
gheistCommented:
since TCP sockets are from BSD, C can be assumed....
0
 
sharadaAuthor Commented:
I am using 'C' language
0
 
ssnkumarCommented:
So, how is the progress?
Were you able to pick up socket programming?

-ssnkumar
0
 
sharadaAuthor Commented:
Yes.....
Thanks...
Sharada.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.