On Sun, Dec 31, 2000 at 03:16:54AM +0000, Jordan Curzon wrote:
> When a server/app starts up it gets a port to _____. What is it that is gets 
> a port to. Thanks.

A task doesn't have any port right automatically. You need to ask for it.
However, there are some ports you can easily get at. The most important are:

mach_thread_self() : A port to the current thread.
mach_task_self() : A port to the current task.
mach_reply_port(): Some reply port for you to use.

So, you don't get any ports to somewhere else for free.
In the Hurd, you can use get_privileged_ports to get the host privileged and
master device port (the second you can use with the device interface), but
only if you are the superuser.

There is certainly more to talk about ports and Hurd servers/apps, but maybe
the above helps you to ask your next question ;)

Thanks,
Marcus


-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-hurd

Reply via email to