Сохранить информацию о клиентском соединении
#include <sys/neutrino.h>int ConnectClientInfo( int scoid,struct _client_info *infoint ngroups );int ConnectClientInfo_r( int scoid,struct _client_info *infoint ngroups );
NGROUPS_MAX
, you might get information only about a subset of the groups.libc
These calls get information about a client connection identified by scoid, and store it in the buffer that info points to.
The ConnectClientInfo() and ConnectClientInfo_r() functions are identical except in the way they indicate errors.
A server uses these functions to determine whether or not a client has permission to access a resource. For example, in a resource manager, it would be called on an open() connection request.
The ngroups argument to ConnectClientInfo() indicates the size of the grouplist array. If the group array size is zero, the ngroups member of the struct _cred_info is set to the number of groups available.
-1
, код ошибки записывается в errno. Любое другое возвращенное значение считается успешным завершением.EOK
возвращается при успешном завершении. Функция НЕ устанавливает errno. При возникновении ошибки функция возвращает один из представленных ниже кодов.
ЗОСРВ «Нейтрино»
struct _client_info, struct _cred_info ConnectServerInfo(), struct _msg_info, MsgInfo(), MsgReceivev(), ND_NODE_CMP(), netmgr_ndtostr(), netmgr_remote_nd(), netmgr_strtond()
Предыдущий раздел: Описание API системной библиотеки