?
Solved

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

Posted on 2004-03-26
8
Medium Priority
?
794 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 10698806
No need to reinvent the wheel - the protocol is called ftp.
0
 
LVL 62

Expert Comment

by:gheist
ID: 10705377
0
 
LVL 8

Accepted Solution

by:
ssnkumar earned 390 total points
ID: 10811868
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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Expert Comment

by:sasha_p
ID: 11106099
Which language are you using?
0
 
LVL 62

Expert Comment

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

Author Comment

by:sharada
ID: 11147061
I am using 'C' language
0
 
LVL 8

Expert Comment

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

-ssnkumar
0
 

Author Comment

by:sharada
ID: 11152437
Yes.....
Thanks...
Sharada.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

765 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