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 


VDSNET.dll ways to send files?

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


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Apr 12, 2003 4:42 pm    Post subject: VDSNET.dll ways to send files? Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Apr 12, 2003 4:47 pm    Post subject: Reply with quote

I know another way. Make a server with the vdshttpd.dll & a DLL like vdsinet, and make a client with only vdsinet. Then send the URL where you can download the file to the client, and then download it...
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Apr 12, 2003 5:12 pm    Post subject: Reply with quote

Thats a great idea, but theres a problem.
What if client 2 wanted to send a file back to client 1?
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Apr 12, 2003 6:04 pm    Post subject: Reply with quote

Give client 2 the same DLLs... Wink
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Sat Apr 12, 2003 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sat Apr 12, 2003 7:27 pm    Post subject: Reply with quote

Thats a good idea, i will have to look into that one and the md5 dll.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Apr 12, 2003 7:33 pm    Post subject: Reply with quote

The VDSMD5.DLL is part of the VDSDLL3.DLL just in case you can't find it. Wink
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message 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