|
-
Dec 5th, 2001, 07:06 PM
#1
Thread Starter
Addicted Member
Multi- File Transfering DLL
I'm in desperate need of a multiple file transfering system. So far no one has helped me, I've never even seen someone do it correct yet! Any help is greatfully accepted.
-
Dec 5th, 2001, 07:38 PM
#2
Describe in more detail, please.
Z.
-
Dec 5th, 2001, 07:57 PM
#3
Thread Starter
Addicted Member
It will be a component which allows a user to send a file and receive a file. It will be created so that more than one download can be going at once (multiple), and also it can recieve more than one file at once.
-
Dec 5th, 2001, 08:19 PM
#4
You could probably do it by opening the file in binary mode, and reading a single Long from the file at a time, change it to a string. Append that string to the number of bytes read(so the result would look like "4234534536", where the first 4 means 4 bytes), and send that over a winsock connection. When the data is recieved, break the first number out, convert the rest into a Long, and write out the long in binary mode, using the number of bytes. That solves the single file transfer problem. For the multiple connection thing, just load a new winsock control on each computer and have them connect, and procede as above. Of course, you should send the file name as the first string, followed by the byte data.
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|