Re: Socket Programming
From: Terry A Haimann (terry_at_Pegasus.oldboy)
Date: 06/29/05
- Previous message: AJ: "Language problem at connextion"
- In reply to: Terry A Haimann: "Re: Socket Programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: AJ: "Language problem at connextion"
- In reply to: Terry A Haimann: "Re: Socket Programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|