mirror of
https://github.com/cahirwpz/libnix.git
synced 2026-09-13 04:02:26 +00:00
19 lines
373 B
C
19 lines
373 B
C
#include <netdb.h>
|
|
//
|
|
#include "socket.h"
|
|
|
|
struct servent *getservbyname(const char *name, const char *proto)
|
|
{ struct SocketSettings *lss;
|
|
|
|
switch (lss=_lx_get_socket_settings(),lss->lx_network_type) {
|
|
case LX_AS225:
|
|
return SOCK_getservbyname(name,proto);
|
|
|
|
case LX_AMITCP:
|
|
return TCP_GetServByName(name,proto);
|
|
|
|
default:
|
|
return NULL;
|
|
}
|
|
}
|