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 


Sending files over the net.

 
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: Tue May 27, 2003 10:43 pm    Post subject: Sending files over the net. Reply with quote

Ok I have been pulling my hair out over this one. So many way to do it but i cant figure out which will work the best.

So far i figure i can use something like vdsinet.dll to send the data of a file via the net and have the program rebuild it, but is this the best way?

Any suggestions on how i can send and recive files over the net?
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue May 27, 2003 10:47 pm    Post subject: Reply with quote

I don't have much knowledge about this particular subject, but shouldn't
you make a socket connection with the other computer and then just
transfer the file? Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Tue May 27, 2003 11:09 pm    Post subject: Reply with quote

that was my initial though actually, but the only solution i could seem to get to work theoretically was to send it via strings line by line.
maybe im looking at this wrong.
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue May 27, 2003 11:27 pm    Post subject: Reply with quote

I would use binfile if you're going to send line for line.

-Garrett
Back to top
View user's profile Send private message
Skit3000
Admin Team


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

PostPosted: Wed May 28, 2003 12:42 pm    Post subject: Reply with quote

You can also use Prakash's vdshttpd dll, which sets up a webserver. That way you only have to send the IP address and the port number. It also is a much better way, because a normal socket connect can loose some packages...
_________________
[ 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
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Wed May 28, 2003 1:18 pm    Post subject: Reply with quote

This might sound a little naive but, doesn't anybody use FTP anymore? I
use the VDSIPP.DLL to send via FTP and it works great, no packet loss,
no breaking down files line by line. It's very simple, of course, I can't
pick up an interrupted transmition (at least I haven't bothered to try
because the FTP has been so reliable). The only issue I run into on
occasion is a firewall blocking port 21.

moke
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


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

PostPosted: Wed May 28, 2003 1:44 pm    Post subject: Reply with quote

But you can't make a FTP server with VDS, can you?
_________________
[ 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
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Wed May 28, 2003 2:39 pm    Post subject: Reply with quote

Good point Skit Smile. I sometimes forget that my applications are used a bit
differently than most. My use of FTP is easy because although there are
thousands of companies using my software they all send files to the
same server.

But still, the server end is invisble to the user, in most cases. I don't care
what the FTP server is, there are enough low cost FTP servers out there
that I don't need to waste my efforts reproducing them. Since I need to
have the ability to lisence an unlimited number of clients that is where
my developement efforts are placed because that is where my cost
would be if I had buy something to integrate into my applications.

If you're developing a commercial application to sell a complete file
transmition solution to people running web servers you might take a
different approach or you could include one license of a third party FTP
server and mark up you product accordingly.

moke
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed May 28, 2003 7:15 pm    Post subject: Reply with quote

Don't forget you could also do something like a WHOIS server. The
VDSIPP03.DLL can do this. This only would work with text-based content
however it can be pretty reliable and a lot more secure in my opinion
than making a web server. Smile

_________________
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