Am Freitag, den 11.05.2007, 09:27 +0200 schrieb Alvise Nicoletti:
> Marc Santhoff ha scritto:
> > Am Donnerstag, den 10.05.2007, 16:51 +0200 schrieb Alvise Nicoletti:
> >   
> >> Hi... I have to create a linux service (server side) that:
> >> 1) accept tpc connection from a graphical GUI that I will do probably 
> >> for windows
> >> 2) reads & writes on a mysql database on the localhost
> >> 3) sends some commands to a door (open, close, close on the children's 
> >> head, ecc) through a tcp connection.
> >>
> >> The software will administrate access (door, controls, showers, ecc) on 
> >> a sport center. All the peripherals already have an ip address so I 
> >> don't need to work "low-level".
> >>
> >> I already did a software with Lazarus for a PocketPC (that makes the 
> >> stuff administrate groups directly on the pools with wireless 
> >> connection), but my knowledge about it's compatibility with linux is poor.
> >> My question is: is it possible to do a software that works as a service 
> >> like that?
> >>
> >> Do you have any comments/tips to give me about that project?
> >>
> >> Is there someplace where I can find examples about that with Lazarus so 
> >> I can choose more clearly?
> >>     
> >
> > The fpc distribution comes with a "deamon.pp" example, that could be the
> > complete base frame for your project.


> Fpc isn't already included into Lazarus?

I think so, if you're on windows ... since I'm using stable releases for
a long time I can't tell.

> Or you're talking about installing fpc itself and lazarus in a second 
> moment?

Look:

$ ls /dos/d/FPC/2.0.4/demo/linux/
Makefile       Makefile.fpc   daemon.pp      epoll-pipe.pas

If you replace "/dos/d/FPC" with the point of your fpc installation,
which can be below the lazarus tree, you'll be done.

> Another thing I want to ask is... How to develop that linux daemon under 
> windows (cross compiling)?

I never did, but "fpc -Tlinux ..." should make it if compiling for i386.
Maybe the rtl will need some extra compiling, but for the details other
persons have to answer - try conpiling a simple demo that way.

HTH,
Marc


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to