Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: Best way to implement a mechanism to download or obtain configuration settin
| Subject: | Re: Best way to implement a mechanism to download or obtain configuration settin |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Sun, 4 Jun 2006 23:29:25 |
"Mark" <ng@uk.marrr.co.uk> wrote in message
news:448327bc$1@newsgroups.borland.com...
> i'm just wondering what the best approach would be to implement this?
There is no "best" approach. It is whatever you are most comfortable with,
and what is the easiest for you to set up.
> shall i implement it using sockets or something like ftp?
FTP is built on top of TCP/IP sockets, so you would be using sockets
regardless. Do note, however, that although it would work, FTP is not very
friendly to firewalls and routers because it uses multiple socket
connections. HTTP would be better to use, as it only uses a single
connection and is generall allowed through most firewalls/routers by
default. Of course, that means you would need an HTTP server to host your
file(s) on. Or, you could implement your own custom file transfer protocol
on top of TCP/IP directly. Indy (http://www.indyproject.org) is well suited
for custom protocols, for example, as well as standard ones like FTP and
HTTP.
Gambit
none