[Amizilla-cvs] amizilla/nsprpub/pr/src/md/amiga asocket.c,1.28,1.29
Brought to you by:
maxlarsson
From: Jeff S. <jsh...@us...> - 2004-12-28 23:48:37
|
Update of /cvsroot/amizilla/amizilla/nsprpub/pr/src/md/amiga In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3970 Modified Files: asocket.c Log Message: Added getservbyname and getservbyport to use the thread-based AmiTCP base. Index: asocket.c =================================================================== RCS file: /cvsroot/amizilla/amizilla/nsprpub/pr/src/md/amiga/asocket.c,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** asocket.c 30 Nov 2004 08:49:29 -0000 1.28 --- asocket.c 28 Dec 2004 23:48:26 -0000 1.29 *************** *** 1894,1895 **** --- 1894,1913 ---- } + struct servent *getservbyname(const char *name, const char *proto) { + PRThread *me = PR_GetCurrentThread(); + if (AMITCP_BASE_NAME) { + return TCP_GetServByName(name, proto); + } else { + return NULL; + } + } + + struct servent *getservbyport(int port, const char *proto) { + PRThread *me = PR_GetCurrentThread(); + if (AMITCP_BASE_NAME) { + return TCP_GetServByPort(port, proto); + } else { + return NULL; + } + } + |