Board index » delphi » Communicate over a LAN

Communicate over a LAN

Do you know of a simple way to communicate accross a LAN?

i would like to create a client application and a server application.
The client application needs to be able to send a simple piece of
information to the server application on another computer over the LAN (MS
Windows Network), then the server needs to send a piece of information back
to the client application.

preferbly i would like send strings, but i could work with integers if it
makes a difference.

Do you know of a component that i can download to make this easy? or what
component can i use that i should currently have (using Delphi 6 enterprise
edition)

Thanks alot!

ROB

 

Re:Communicate over a LAN


DCOM comes to mind as a simple way.
--
Finn Tolderlund
Quote
"Rob" <ezek...@slingshot.co.nz> wrote in message news:3d0ef4ed_2@dnews...
> Do you know of a simple way to communicate accross a LAN?

Re:Communicate over a LAN


There's a Socket and ServerSocket components on Internet tab.  Use those or
get ICS from Overbyte (free with source contains more than one component).
Then you could use simple functions like SendStr or in D6 default SendText,
simple to use.

Look at the Delphi 6 simple chat demo which shows how to communicate with
those default components.

Hope this helps a bit..
Teemu

Quote
"Rob" <ezek...@slingshot.co.nz> wrote in message news:3d0ef4ed_2@dnews...
> Do you know of a simple way to communicate accross a LAN?

> i would like to create a client application and a server application.
> The client application needs to be able to send a simple piece of
> information to the server application on another computer over the LAN (MS
> Windows Network), then the server needs to send a piece of information
back
> to the client application.

> preferbly i would like send strings, but i could work with integers if it
> makes a difference.

> Do you know of a component that i can download to make this easy? or what
> component can i use that i should currently have (using Delphi 6
enterprise
> edition)

> Thanks alot!

> ROB

Re:Communicate over a LAN


Sorry Finn, I don't completely agree.
DCom in itself is not that easy to poeple not familiar with distributed
objects over a network, moreover to people not familiar with network
programming at all, that's obviously Rob's case. Besides that, DCom is a
hell on earth when it comes to deploy your app on diverse Windows versions
across your network. You need subscribe to MSDN, which is quit expensive,
and its load of monthly CDs to be able to find a way in Microsoft's jungle
of DLL versions all conflicting one with another. Did you know that
installing M$ SBS on Windows NT SP6a {*word*30}s up your DCom registry in a whole
different way than when you have SP4. That sort of thing implies that you
have a strong QA dept. at your service to test over 40 different Windows
versions/configurations to make sure your app still works in each case.
No, DCom is really fine in a controlled homogeneous environment, but you
cannot assume that that's what people always have.
On the other hand I've seen a couple of apps successfully using sockets and
serving 2 or 3 hundreds xml formated request per second.

Rob: there's no harm in using strings (depends on expected server load:
you'll have to profile that) unless you send over the content of entire
books ;)
Cheers to all,
Steph.
--
"I have made this letter longer than usual because I lack
 the time to make it shorter." -- Blaise Pascal

"Finn Tolderlund" <f...@nospam.com> a crit dans le message news:
3d0efbaa$1_2@dnews...

Quote
> DCOM comes to mind as a simple way.
> --
> Finn Tolderlund

> "Rob" <ezek...@slingshot.co.nz> wrote in message news:3d0ef4ed_2@dnews...
> > Do you know of a simple way to communicate accross a LAN?

Re:Communicate over a LAN


Thankyou all heaps!!
I had completely forgotten that the sample projects existed!  I had a look
at the basic client server project, and it is exactly what i need!
Thanks again.

ROB

Quote
"Teemu" <teemu.valim...@tietotoimi.fi> wrote in message

news:3d0eff75$2_2@dnews...
Quote
> There's a Socket and ServerSocket components on Internet tab.  Use those
or
> get ICS from Overbyte (free with source contains more than one component).
> Then you could use simple functions like SendStr or in D6 default
SendText,
> simple to use.

> Look at the Delphi 6 simple chat demo which shows how to communicate with
> those default components.

> Hope this helps a bit..
> Teemu

> "Rob" <ezek...@slingshot.co.nz> wrote in message news:3d0ef4ed_2@dnews...
> > Do you know of a simple way to communicate accross a LAN?

> > i would like to create a client application and a server application.
> > The client application needs to be able to send a simple piece of
> > information to the server application on another computer over the LAN
(MS
> > Windows Network), then the server needs to send a piece of information
> back
> > to the client application.

> > preferbly i would like send strings, but i could work with integers if
it
> > makes a difference.

> > Do you know of a component that i can download to make this easy? or
what
> > component can i use that i should currently have (using Delphi 6
> enterprise
> > edition)

> > Thanks alot!

> > ROB

Other Threads