| View previous topic :: View next topic |
| Author |
Message |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue May 07, 2002 1:54 pm Post subject: Anyone managed to do a descent File transfer Client/Server ? |
|
|
Hello
Was wondering if anyone managed to do a descent File transfer application Client/server using either VDSINET.DLL or VDSIPP.DLL?
It seems to work properly with text files, but with binaries I'm out of luck.
If someone did one could you tell me what DLL you used and any tips you might want to share. Thanks... |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Tue May 07, 2002 9:29 pm Post subject: |
|
|
Hi Marty,
I've used both but only for clients doing FTP. I do recall a "transfermode" option for VDSIPP for asacii or binary. How are you transfering the files?
moke |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed May 08, 2002 11:52 am Post subject: |
|
|
What I want to do is to transfer a binary file from one IP adress to another thru VDS only, not with FTP. Because FTP Server functionnalities is not supported in VDSIPP.DLL
There's was a code example a while ago to create a client and server using VDSINET.DLL.
Here's the thread to understand what I mean...
http://www.vdsworld.com/archive/index.php?page=topic&board=2&topic=1481
Using that code on my Win2K to send a binary file doesnt work well at all. The file isnt transfered complety or gives a netsoket error. And its slow too. |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Wed May 08, 2002 6:52 pm Post subject: |
|
|
Ok Marty,
After reviewing the code from that thread these are the things I would check.
1) Setting the position for the split may be incorrect
2) The split is exceeding the 32K limit of VDSINOUT
3) The split is too small and the transfer is bumping into itself. The limit for VDSINOUT is 32K I think. This example shows a split for 256 bytes this might slow down the transfer and possibly cause writting problems.
4) If for some reason you use readc/writc instead of readb/writb you will lose the null chars
I would try transfering a file containing a series of consecutive numbers like this:
1
2
3
4
5
6
7
.
.
32767
see where data gets lost.
Sorry I can't give you more detail but I hope this helps .
moke |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed May 08, 2002 6:55 pm Post subject: |
|
|
Ahhh.. Thanks a lot! That's very helpfull!
I will look into the code and try tweaking the code... |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Mon Aug 05, 2002 9:32 pm Post subject: |
|
|
This is similar to what I want to do... however, I was wondering if this can be done without a server using Windows shares.
For example, I want to have a folder that is shared on a LAN, and have my VDS app check the folder for updated files. If it finds that there are updated files, it would retrieve the newer files and replace the old ones.
Can this be done without using HTTP, FTP, etc. and without mapping the share to a drive letter? |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Aug 05, 2002 10:41 pm Post subject: |
|
|
On a plain LAN you should be able to copy files from a computer in the same workgroup
without mapping to new drive letters etc.
Try something like this:
| Code: | | file copy,\\DREAD\SharedDocs\file1.txt,C:\Synched\file1.txt |
That should copy the file file1.txt from the SharedDocs folder on the computer named DREAD
to the Synched folder on your own computer.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Aug 05, 2002 10:52 pm Post subject: |
|
|
| Dr. Dread wrote: |
Try something like this:
| Code: | | file copy,\\DREAD\SharedDocs\file1.txt,C:\Synched\file1.txt |
That should copy the file file1.txt from the SharedDocs folder on the computer named DREAD
to the Synched folder on your own computer.
Greetz
Dr. Dread |
Methinks you forgot the drive letter on the source computer...
| Code: |
file copy,\\DREAD\C\SharedDocs\file1.txt,C:\Synched\file1.txt
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Aug 05, 2002 11:07 pm Post subject: |
|
|
| Mac wrote: |
Methinks you forgot the drive letter on the source computer...
| Code: |
file copy,\\DREAD\C\SharedDocs\file1.txt,C:\Synched\file1.txt
|
|
Hi, Mac
Well not necessarily. It depends on how the DREAD computer shares its files. If the C drive is shared
from the root and down - yes. If it only shares files in the folder SharedDocs (and the folders
located in the tree below that) then the path \\DREAD\SharedDocs\file1.txt should be OK.
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Aug 05, 2002 11:20 pm Post subject: |
|
|
Hiya Dread,
I didn't know that...
All my drives are shared on all computers.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Tue Aug 06, 2002 8:02 am Post subject: |
|
|
Other VDS commands should be able to work like this too, such as:
| Code: |
list create,1
list filelist,1,\\SERVER\FILESTOMMY,AHRS
info @text(1)
list close,1
|
|
|
| Back to top |
|
 |
|