Solved

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

Posted on 2004-03-26
8
789 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
ID: 10698806
No need to reinvent the wheel - the protocol is called ftp.
0
 
LVL 61

Expert Comment

by:gheist
ID: 10705377
0
 
LVL 8

Accepted Solution

by:
ssnkumar earned 130 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
 
LVL 1

Expert Comment

by:sasha_p
ID: 11106099
Which language are you using?
0
Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

 
LVL 61

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What's the problem with my DSL? 4 55
By pass website on ASA for Websense 4 49
Valid LIN protocol Protected ID values 1 18
Network access 4 19
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

932 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

19 Experts available now in Live!

Get 1:1 Help Now