|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Creating an FTP server?
Hi,
I know the basics of (windows) socket programming. I've written a simple client and server app, and I'm currently trying to make something decent out of it. Now if I set my port to 21, FTP, and I try and connect to localhost or somebody else connects to my IP, then it gets a connection, then times out. What is it FTP requires me to send back before it starts the authentication process?Regards, Someonewhois Thanks for your help in advanced! |
|
#2
|
||||
|
||||
|
Hi again!
![]() You'll probably want to take a good look at the RFC, which you can find at ftp://ftp.rfc-editor.org/in-notes/rfc959.txt (amongst many, many other places ). There are RFCs that provide updates to this particular RFC though, so you might want to consider searching for "file transfer protocol" using the RFC Search Engine.
__________________
"A poor programmer is he who blames his tools." http://analyser.oli.tudelft.nl/ |
|
#3
|
||||
|
||||
|
Yes, you definitely do need to read the RFCs to see how FTP is supposed to work. For one thing, it uses two ports: port 21 for control messages and port 20 for file transfer. Plus you need to know what the commands and command formats are.
Just a tiny heads-up of a couple things to look for. Sounds like a fun project. |
|
#4
|
||||
|
||||
|
Do I detect a hint of sarcasm in your post, dwise1_aol?
![]() |
|
#5
|
||||
|
||||
|
Quote:
No, not the least bit. I wish I had the time for some fun. One of my planned projects is a file-transfer protocol which I'll probably base loosely on ftp. Just for the experience. someonewhois, you might also want to consider getting a packet sniffer if you don't already have one. tcpdump comes with most Linuxes and there's a Windows port called Windump. We use Ethereal on Windows 98SE at work. All three of those I just mentioned are free. |
|
#6
|
|||
|
|||
|
Hey again analyser
Yes all, I have a lot of time on my hands, and just love experimenting and playing around with C. ![]() Will look into, both of you. Thanks. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Creating an FTP server? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|