Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl OnColumnClick Pin
ns3-Oct-02 11:09
ns3-Oct-02 11:09 
GeneralRe: CListCtrl OnColumnClick Pin
Tomasz Sowinski3-Oct-02 11:15
Tomasz Sowinski3-Oct-02 11:15 
Generalyay!!! Pin
ns3-Oct-02 11:29
ns3-Oct-02 11:29 
Generalitemclick Pin
ns3-Oct-02 11:31
ns3-Oct-02 11:31 
GeneralRe: itemclick Pin
Tomasz Sowinski3-Oct-02 11:32
Tomasz Sowinski3-Oct-02 11:32 
GeneralRe: itemclick Pin
ns3-Oct-02 11:39
ns3-Oct-02 11:39 
GeneralFTP Server :: Winsock Pin
valikac3-Oct-02 10:37
valikac3-Oct-02 10:37 
GeneralRe: FTP Server :: Winsock Pin
Aaron Schaefer3-Oct-02 11:28
Aaron Schaefer3-Oct-02 11:28 
You need to take a look at the RFC. I have a copy of RFC 959, but I don't know if that is the latest and greatest. Mabye soeone can correct me if there has been another one since then (I believe there has been a revision/addendum to address MPFTP, or something like that, maybe). This outlines the FTP protocol.

If you would like to see what happens between the server and client in action, just install an FTP client, say CuteFTP or WS_FTP, and an FTP server on your machine, say BulletProof FTP or something similar. Both have logging functionality, so you can see the commands the client sends, and the responses the server sends back.

Set up an account in the FTP server, start the server, and log in with the client. Give the host address as "localhost", browse around in the client, download and upload a couple of files, etc.

Basically, it works something like this. The client establishes a connection to the server over a socket to issue commands and receive responses. This socket is the control socket. Commands are issued as text, the command followed by (optionally) arguments. The server receives the command on the other end, and sends a response to the client on the control socket, indicating whether the commad was successful, further information, etc. Data is transferred over a second socket, the data socket, which is generally connected for the duration of a transfer only, and may be either the responsibility of the client or the server to establish the data connection for file transfers, directory listings, etc., depending on what mode the session is in (Passive mode, or "Not Passive").

Maybe you should try implementing an FTP client first? This is not trivial, but simpler than implementing a server, since you only have to worry about two sockets, instead of an arbitrary number for the server.

The RFC specifies this in greater detail, but generally, USER, then (optionally) PASS, and in some cases ACCT. Though, practice, there is almost always a password required, but I think there doesn't have to be. Take a look at the RFC.

Good Luck!

Aaron
GeneralRe: FTP Server :: Winsock Pin
valikac3-Oct-02 13:40
valikac3-Oct-02 13:40 
GeneralRe: FTP Server :: Winsock Pin
Jörgen Sigvardsson3-Oct-02 13:49
Jörgen Sigvardsson3-Oct-02 13:49 
GeneralRe: FTP Server :: Winsock Pin
Jon Hulatt3-Oct-02 21:55
Jon Hulatt3-Oct-02 21:55 
GeneralRe: FTP Server :: Winsock Pin
Jörgen Sigvardsson3-Oct-02 22:49
Jörgen Sigvardsson3-Oct-02 22:49 
GeneralCFileDialog: HELP Pin
Sunnygirl3-Oct-02 10:00
Sunnygirl3-Oct-02 10:00 
GeneralRe: CFileDialog: HELP Pin
Tomasz Sowinski3-Oct-02 10:12
Tomasz Sowinski3-Oct-02 10:12 
GeneralRe: CFileDialog: HELP Pin
Sunnygirl3-Oct-02 10:19
Sunnygirl3-Oct-02 10:19 
GeneralRe: CFileDialog: HELP Pin
Tomasz Sowinski3-Oct-02 10:22
Tomasz Sowinski3-Oct-02 10:22 
GeneralRe: CFileDialog: HELP Pin
Sunnygirl3-Oct-02 10:26
Sunnygirl3-Oct-02 10:26 
GeneralRe: CFileDialog: HELP Pin
Tomasz Sowinski3-Oct-02 10:29
Tomasz Sowinski3-Oct-02 10:29 
GeneralRe: CFileDialog: HELP Pin
Sunnygirl3-Oct-02 11:02
Sunnygirl3-Oct-02 11:02 
GeneralRe: CFileDialog: HELP Pin
Shog93-Oct-02 10:34
sitebuilderShog93-Oct-02 10:34 
GeneralDelete STL list Pin
Chris Richardson3-Oct-02 9:51
Chris Richardson3-Oct-02 9:51 
GeneralRe: Delete STL list Pin
Tomasz Sowinski3-Oct-02 10:08
Tomasz Sowinski3-Oct-02 10:08 
GeneralRe: Delete STL list Pin
Chris Richardson3-Oct-02 10:10
Chris Richardson3-Oct-02 10:10 
GeneralRe: Delete STL list Pin
Joaquín M López Muñoz3-Oct-02 10:10
Joaquín M López Muñoz3-Oct-02 10:10 
GeneralCStringArray and its size Pin
ns3-Oct-02 9:21
ns3-Oct-02 9:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.