News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Send and recieve files per winsock

Started by Ar-ras, April 07, 2006, 02:27:05 AM

Previous topic - Next topic

Ar-ras

i am writing a ftp server, but i don't know how to send and recieve a file

PBrennick

There is a program that does that on Iczelion's website.  I have been told it is not that great but I use it all the time and never have any problems with it.  At least it will give you direction.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

Tedd

You don't know how FTP should send/receive files?
http://www.ietf.org/rfc/rfc0959.txt will give you more information than you can swallow, regarding how FTP works.

Or you don't know how to get your program to send/receive data (which is files in this case)?
Then I think you might want to experiment with something a little simpler first - a little program to send and receive text. Not wanting to stamp out your enthusiasm, but there are a few things you need to understand first, and making it simpler makes it easier to grasp. Plus, there will be more in the way of examples/help for this. Once you understand how to send text, files/data/anything is actually exactly the same.
No snowflake in an avalanche feels responsible.

Ar-ras

To send and recieve text is no problem

Does Winsock has an own function to send and recieve files or must i open the files and send it in "raw" method?

Tedd

Winsock itself doesn't really provide such support.
But you're in luck.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/wininet_functions.asp
Look for the functions named "ftp....." :toothy
No snowflake in an avalanche feels responsible.

Ar-ras

Okay I try

Another problem...
How can I make multiple connection?


I use sparcz telnet server to write the ftp server

thx Ar-ras

Tedd

Multiple connections:
- create connection 1
- create connection 2
- create connection 3
- ......
:lol

(They're all separate connections - that's how you do it.)
No snowflake in an avalanche feels responsible.