Computing.Net > Forums > Programming > C socket programming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C socket programming

Reply to Message Icon

Name: Ritz
Date: December 4, 2001 at 16:47:35 Pacific
Comment:

Hey. I'm working on a program in C which will connect to a server on port 21 for FTP, and I'm having some trouble with the actual logging in process. First of all, do I need to have a Stream or D-gram socket? After setting up the right typ of socket, should I just send the text "USER uname" and "PASS password", or is there some sort of wierd crazy function i need?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Mik
Date: December 5, 2001 at 00:58:19 Pacific
Reply:

FTP is a connection oriented protocol so use a stream socket.
One you are connected you might receive some information from the server. But after that you can just send the USER command. Followed by the PASS command.

But you should read RFC 959 for the exact specifications of the FTP protocol.

ftp://ftp.isi.edu/in-notes/rfc959.txt

Mik


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C socket programming

C socket programming in linux www.computing.net/answers/programming/c-socket-programming-in-linux/2462.html

windows socket programming www.computing.net/answers/programming/windows-socket-programming/4211.html

c++ socket programming www.computing.net/answers/programming/c-socket-programming/2541.html