hesiod_getservbyname, hesiod_free_servent - Hesiod functions for retrieving service information
#include <hesiod.h> struct servent *hesiod_getservbyname(void *context, const char *name, const char *proto) void hesiod_free_servent(void *context, struct servent *serv) cc file.c -lhesiod
Hesiod queries for service information are made using the ``service'' Hesiod type, using the service name as the Hesiod name. The corresponding records should be space-separated lists of strings giving the service name, protocol, port number (in decimal), and zero or more aliases for the service. There may be multiple records per service name; hesiod_getservbyname will pick the first one whose protocol matches proto.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |