78 static struct xlist *xprtlist;
93 for (
l = xprtlist;
l;
l =
l->next) {
97 if (
svc_reg(
l->xprt, prognum, versnum,
113 l = (
struct xlist *)
malloc(
sizeof (*
l));
185 const struct t_bind *bindaddr;
224 if (bindaddr ==
NULL) {
int strcmp(const char *String1, const char *String2)
void dispatch(HANDLE hStopEvent)
int bindresvport(SOCKET sd, struct sockaddr_in *sin)
#define SVC_DESTROY(xprt)
static unsigned __int64 next
void * __rpc_setconf(char *nettype) const
struct netconfig * __rpc_getconf(void *vhandle)
int __rpc_fd2sockinfo(SOCKET fd, struct __rpc_sockinfo *sip)
void __rpc_endconf(void *vhandle)
int __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
SOCKET __rpc_nconf2fd(const struct netconfig *nconf)
bool_t rpcb_unset(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
INT WSAAPI getpeername(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
INT WSAAPI listen(IN SOCKET s, IN INT backlog)
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
int __rpc_sockisbound(SOCKET)
int __rpc_socktype2seman(int)
bool_t svc_reg(SVCXPRT *xprt, const rpcprog_t prog, const rpcvers_t vers, void *dispatch, const struct netconfig *nconf)
SVCXPRT * svc_dg_create(int fd, u_int sendsize, u_int recvsize)
SVCXPRT * svc_tli_create(SOCKET fd, const struct netconfig *nconf, const struct t_bind *bindaddr, u_int sendsz, u_int recvsz)
SVCXPRT * svc_tp_create(void *dispatch, rpcprog_t prognum, rpcvers_t versnum, const struct netconfig *nconf)
int __svc_vc_setflag(SVCXPRT *, int)
int svc_create(void *dispatch, rpcprog_t prognum, rpcvers_t versnum, const char *nettype)
SVCXPRT * svc_fd_create(SOCKET fd, u_int sendsize, u_int recvsize)
SVCXPRT * svc_vc_create(int fd, u_int sendsize, u_int recvsize)