[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 798
  • Last Modified:

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.
0
sharada
Asked:
sharada
  • 3
  • 2
  • 2
  • +1
1 Solution
 
gheistCommented:
No need to reinvent the wheel - the protocol is called ftp.
0
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now