| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Apr 12, 2003 4:42 pm Post subject: VDSNET.dll ways to send files? |
|
|
Is there a way that VDSNET.dll could send a bin or other type of file over net/lan?
Maybe some how take an type of file, and send each line of data to other user, like a chat program, then the other client put all the data back into a file and save?
Can it be done? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Apr 12, 2003 5:12 pm Post subject: |
|
|
Thats a great idea, but theres a problem.
What if client 2 wanted to send a file back to client 1? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Apr 12, 2003 6:09 pm Post subject: |
|
|
Use binfile in ascii mode, send each line via TCP until you reach the end of the file. You then on the client end need to re-assemble each line to make the file. Rmember tho that you need to check that the lines are received in order. To do this you can place a string at the begining of each line you send, something like>
LINE 1|FILE.DSR|24324242434244234324234424324243
Where the first part tells what line is being sent, the file name, and then teh ascii data of line 1.
The client program can then tell if all lines are sent, if not the client program cna query teh server to send a line missed in the case it was missed (using tcp there is a less likely chance you will miss a line being sent/received). You can also do a md5 sum on the entire line to make sure it's being received non-corrupted. |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Apr 12, 2003 7:27 pm Post subject: |
|
|
| Thats a good idea, i will have to look into that one and the md5 dll. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Apr 12, 2003 7:33 pm Post subject: |
|
|
The VDSMD5.DLL is part of the VDSDLL3.DLL just in case you can't find it.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|