![]() |
2010-03-11
, 11:51
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#4
|
The Following User Says Thank You to rambo For This Useful Post: | ||
![]() |
2010-03-11
, 12:07
|
Posts: 225 |
Thanked: 64 times |
Joined on Feb 2010
|
#5
|
![]() |
2010-03-11
, 12:09
|
Posts: 162 |
Thanked: 79 times |
Joined on Jan 2010
@ Finland
|
#6
|
The Following User Says Thank You to chainreaction For This Useful Post: | ||
![]() |
2010-03-11
, 12:14
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#7
|
I'm doing a service/daemon, and I'm using the gui aspect so that the phone shows me something i can interact with so I know its working. eventually the app will not have a gui and will probably be configured using the browser
i think, therefore, it may be wiser to just run a high port number in the future; it doesnt really matter - the clients of this app (smtp capable programs) can always change the port number to match the app, and it may be more sensible from an exploit point of view not to have the program running as root..
![]() |
2010-03-11
, 15:13
|
Posts: 225 |
Thanked: 64 times |
Joined on Feb 2010
|
#9
|
You could make a separate small GUI app for the configuration (GConf can notify about key changes do your daemon can automagically react to changed configs).
Anyways, I would run the app in terminal in foreground while debugging, shorter way to a real daemon from there (and many of the daemons in linux/unix world have an option to start in foreground for exactly this reason).
on single user device like the N900 the privilege separation does not help as much as all the important bits for the user (user data, photos, contacts etc) are accessible/messable with the users privileges...
![]() |
2010-03-11
, 15:15
|
Posts: 225 |
Thanked: 64 times |
Joined on Feb 2010
|
#10
|
Port 0-1024 are reserved for well defined processes, eg. http is port 80.
Use a port that's between 1025 and 65,535.
Binding to a listening port 25 (for example) works when I run my Qt app in windows, but fails on the device, with error code 3: The address is protected
Can anyone advise how to allow opening this socket?