Solved

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

Posted on 2004-03-26
8
788 Views
Last Modified: 2013-12-23
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
Comment
Question by:sharada
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 61

Expert Comment

by:gheist
Comment Utility
No need to reinvent the wheel - the protocol is called ftp.
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
0
 
LVL 8

Accepted Solution

by:
ssnkumar earned 130 total points
Comment Utility
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
 
LVL 1

Expert Comment

by:sasha_p
Comment Utility
Which language are you using?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 61

Expert Comment

by:gheist
Comment Utility
since TCP sockets are from BSD, C can be assumed....
0
 

Author Comment

by:sharada
Comment Utility
I am using 'C' language
0
 
LVL 8

Expert Comment

by:ssnkumar
Comment Utility
So, how is the progress?
Were you able to pick up socket programming?

-ssnkumar
0
 

Author Comment

by:sharada
Comment Utility
Yes.....
Thanks...
Sharada.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now