As I promised, here's my FTP-Server code w/o interface
Why did I wrote it? Because I didnt found any on ASSEMBLER
It is almost multi-client but it is switching directory using SetCurrentDirectory, that means each client does not have some private "current directory".
When client is connected Server assigns a personal structure and thread to it.
Why thread? Because all sockets are blocking-mode, but im planning to utilize these threads, because there are some unknown unlimited loop's been when i tried MSIE as client.
Also there's problem with source: not heave commented, lightly
What Server allowed to do:
Why did I wrote it? Because I didnt found any on ASSEMBLER
It is almost multi-client but it is switching directory using SetCurrentDirectory, that means each client does not have some private "current directory".
When client is connected Server assigns a personal structure and thread to it.
Why thread? Because all sockets are blocking-mode, but im planning to utilize these threads, because there are some unknown unlimited loop's been when i tried MSIE as client.
Also there's problem with source: not heave commented, lightly
What Server allowed to do:
[*]Make directory
[*]Rename
[*]Download restarting
[*]Download
[*]Upload
[*]Delete(only files)
[*]PASSIVE data connection - buggy, same port used: 1337
[*]PORT
about clients, successfuly tested with (as clients):
[*]Total commander 6.0 - total success :)
[*]FlashFXP 2.0
[*]MSIE - only file list
http://www.hot.ee/valk777/ftp_server.rar - heave packed rar
dosn?t work for me.. (win XP) and i dont understand the commented language..
Oops, forgot to tell, the port is 1942 not 21, and as i wrote above, app doesnt have any windows it stays hidden, look at taskmon
I can help you code a gui if I have the time and if you want.
Sometimes ago I did a FTP with WININET.DLL...i.e. with dll created for Windows...
Mine is working...I saw yours, but I think it is not working...you used wsock.dll...
go to FTP with WININET
If you also want to see my site about assembler go to ... Assembler
Me I used wininet and it works correctly...but with wininet it is impossible (see almost) to use asynchrone mode...
I think if you like mathematics and physics you will be happy...
Good enjoy for you and for all whose are interested by Computer Science....
-----
Gerard
-----------------------------------------------------------------------------------------------------
"The better way is to do all by oneself"
(Unknown)
Mine is working...I saw yours, but I think it is not working...you used wsock.dll...
go to FTP with WININET
If you also want to see my site about assembler go to ... Assembler
Me I used wininet and it works correctly...but with wininet it is impossible (see almost) to use asynchrone mode...
I think if you like mathematics and physics you will be happy...
Good enjoy for you and for all whose are interested by Computer Science....
-----
Gerard
-----------------------------------------------------------------------------------------------------
"The better way is to do all by oneself"
(Unknown)
zabnik
Excuse for the response I have made for you...
Your program is not bad...and is more powerful than I thought it...
First thing...try to build a window...yes your program is loaded in memory but...one prefers to see a window ...we are pragmatics...
Mine (i.e. program) is only a client...yours is a Server...(although I very well know that with WindowsXP one can use it like a FTP site)...
Second thing try to use WSA with API WSAAsyncSelect like that your program will not work in a blocked state...
Me I was obssessed by a program using WSOCK to made a Net like eMule ...and it is for that I watched your program in quick view ...but after a certain time I came back to your program and put a good eye in it....
I repeat me, try to re-mold your program by creating a window and using WSAAsyncSelect ...
Good work...
Gerard....
----
In this forum one can always find help or advices ...
Excuse for the response I have made for you...
Your program is not bad...and is more powerful than I thought it...
First thing...try to build a window...yes your program is loaded in memory but...one prefers to see a window ...we are pragmatics...
Mine (i.e. program) is only a client...yours is a Server...(although I very well know that with WindowsXP one can use it like a FTP site)...
Second thing try to use WSA with API WSAAsyncSelect like that your program will not work in a blocked state...
Me I was obssessed by a program using WSOCK to made a Net like eMule ...and it is for that I watched your program in quick view ...but after a certain time I came back to your program and put a good eye in it....
I repeat me, try to re-mold your program by creating a window and using WSAAsyncSelect ...
Good work...
Gerard....
----
In this forum one can always find help or advices ...
Im making a window right now, im unsure how long it takes but it will be finished and will support as many as possible Clients, Commands, and Server options