Re: Socket Programming

From: Terry A Haimann (terry_at_Pegasus.oldboy)
Date: 06/29/05

  • Next message: Sagaert Johan: "Re: VIA Epia blank screen in X with FC4 ???"
    Date: Wed, 29 Jun 2005 16:21:47 GMT
    
    

    On Sun, 26 Jun 2005 18:23:22 +0000, Terry A Haimann wrote:

    > On Sat, 25 Jun 2005 19:54:04 +0000, Tero Hänninen wrote:
    >
    >> On Sat, 25 Jun 2005 15:50:43 GMT, Terry A Haimann <terry@Pegasus.oldboy> wrote:
    >>> I wanted to pass info from 1 app to another.
    >>>
    >>> So I tryed to write a socket server program (using Lazarus, which uses
    >>> Free Pascal.) The app fails during the bind step unless it is started
    >>> by root. What access rights do I need in order to run this program as a
    >>> regular user?
    >>
    >> You probably need to bind to a port higher than 1024 (ports lower than
    >> 1024 are restricted).
    >>
    >> You could also look at Unix domain sockets (IPC sockets) in case your apps
    >> are on the same machine (and don't have to communicate over network).
    >>
    >> /Tero
    >
    >
    > Its to a high address port.
    >
    > I had used as a template (http://bastisoft.de/pascal/pasinet.html.) I
    > converted it to running as a thread in Lazarus.
    >
    > The source code is almost identical, but when run under fpc (Free Pascal
    > Compiler) it run normally. But when I run it as a thread in Lazarus (A
    > delphi like sysem (which uses fpc as its compiler,)) it requires root
    > access and doesn't accept connections.
    >
    > Terry

    I found the problem. Two seperate libraries were tripping over each other.

    Thx, Terry


  • Next message: Sagaert Johan: "Re: VIA Epia blank screen in X with FC4 ???"

    Relevant Pages

    • Re: Porting Delphi Project to UNIX Platform.
      ... The Free Pascal Compiler (FPC) would definitely work for you, and it does support the Advantage Database. ... I would not recommend Kylix! ... We switched 3-4 years ago to FPC and using the Lazarus IDE. ...
      (borland.public.delphi.non-technical)
    • Re: Porting Delphi Project to UNIX Platform.
      ... The Free Pascal Compiler (FPC) would definitely work for you, and it does support the Advantage Database. ... I would not recommend Kylix! ... We switched 3-4 years ago to FPC and using the Lazarus IDE. ...
      (borland.public.delphi.non-technical)
    • Re: kilyx
      ... Look at the Delphi IDE. ... project management (that is not C ish because of a compiler ... It's like the current situation that FPC has with GDB and LD (which are the ... Lazarus was pretty much the only thing. ...
      (borland.public.delphi.non-technical)
    • Re: Lazarus, on Ubunto 8.04
      ... Where did you get the FPC and Lazarus packages from? ... I have been working using the FPC compiler, for a while now, ... Having installed Lazarus, ...
      (uk.comp.os.linux)