forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Anyone managed to do a descent File transfer Client/Server ?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue May 07, 2002 1:54 pm    Post subject: Anyone managed to do a descent File transfer Client/Server ? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Tue May 07, 2002 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed May 08, 2002 11:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Wed May 08, 2002 6:52 pm    Post subject: Reply with quote

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 Smile .

moke
Back to top
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed May 08, 2002 6:55 pm    Post subject: Reply with quote

Ahhh.. Thanks a lot! Smile That's very helpfull! Wink

I will look into the code and try tweaking the code...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Mon Aug 05, 2002 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Aug 05, 2002 10:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Aug 05, 2002 10:52 pm    Post subject: Reply with quote

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... Wink
Code:

file copy,\\DREAD\C\SharedDocs\file1.txt,C:\Synched\file1.txt

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Aug 05, 2002 11:07 pm    Post subject: Reply with quote

Mac wrote:

Methinks you forgot the drive letter on the source computer... Wink
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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Aug 05, 2002 11:20 pm    Post subject: Reply with quote

Hiya Dread,

I didn't know that... Confused

All my drives are shared on all computers.

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Tue Aug 06, 2002 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group