From c105cd27111444f3d35e495515ea90ab78e0ac7f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 30 Apr 2014 12:32:25 +0200 Subject: Rework the paragraph --- hurd/networking.mdwn | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hurd') diff --git a/hurd/networking.mdwn b/hurd/networking.mdwn index 20468d0f..e1bebec5 100644 --- a/hurd/networking.mdwn +++ b/hurd/networking.mdwn @@ -10,15 +10,11 @@ is included in the section entitled [[GNU Free Documentation License|/fdl]]."]]"""]] For each supported `PF_*` protocol family (domain), there is a file `/servers/socket/N` -where `N` is the numeric value for the `PF_*` symbol. Right now +where `N` is the numeric value for the `PF_*` symbol. libc's socket(), socketpair() and friends use `hurd_socket_server` to open them: the latter computes the `/servers/socket/N` path, then open it a return the result. Since those paths are translated (see showtrans on `/servers/socket/N`), it's a port to a translator which is returned. Right now [[`PF_LOCAL`|translator/pflocal]] (a.k.a. `PF_UNIX` or `AF_UNIX`) `N=1`, [[`PF_INET`|translator/pfinet]] (a.k.a `AF_INET`) `N=2` and [[`PF_INET6`|translator/pfinet/ipv6]] (a.k.a `AF_INET6`) `N=26` are supported. -Depending on the socket domain used the libc function `_hurd_socket_server` -is called from the calling function socket/socketpair, resolving to those -`/servers/socket/` nodes, which are translated by `/hurd/pflocal`, `/hurd/pfinet`, etc, see showtrans on them. - In case of problems to find out which server is called rpctrace can be of use: search for the output `dir_lookup ("servers/socket/N" ...)` -- cgit v1.2.3