75static int read_vc(
void *,
void *,
int);
113 switch (
ss->ss_family) {
160 goto cleanup_svc_vc_create;
170 goto cleanup_svc_vc_create;
184 goto cleanup_svc_vc_create;
189 goto cleanup_svc_vc_create;
193cleanup_svc_vc_create:
245 if (
ret->xp_ltaddr.buf !=
NULL)
246 mem_free(
ret->xp_ltaddr.buf, rep->xp_ltaddr.maxlen);
275 memset(xprt, 0,
sizeof *xprt);
363 cd->recvsize =
r->recvsize;
364 cd->sendsize =
r->sendsize;
365 cd->maxrec =
r->maxrec;
368 if (
cd->maxrec != 0) {
374 if (
cd->recvsize >
cd->maxrec)
375 cd->recvsize =
cd->maxrec;
487 int milliseconds = 35 * 1000;
530 timeout.tv_usec = milliseconds * 1000;
598 for (cnt =
len; cnt > 0; cnt -=
i,
buf +=
i) {
609 if (
cd->nonblock &&
i != cnt) {
668 cd->x_id =
msg->rm_xid;
684 return ((*xdr_args)(&(((
struct cf_conn *)(xprt->
xp_p1))->xdrs),
702 return ((*xdr_args)(
xdrs, args_ptr));
721 msg->rm_xid =
cd->x_id;
731 static struct xp_ops ops;
732 static struct xp_ops2 ops2;
738 if (ops.xp_recv ==
NULL) {
756 static struct xp_ops ops;
757 static struct xp_ops2 ops2;
761 if (ops.xp_recv ==
NULL) {
824 struct timeval tv, tdiff, tmax;
838 if (!cleanblock && !
cd->nonblock)
#define gettimeofday(tv, tz)
static struct sockaddr_in sa
#define timercmp(tvp, uvp, cmp)
#define SVCGET_CONNMAXREC
#define SVCSET_CONNMAXREC
#define mem_free(ptr, bsize)
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
INT WSAAPI select(IN INT s, IN OUT LPFD_SET readfds, IN OUT LPFD_SET writefds, IN OUT LPFD_SET exceptfds, IN CONST struct timeval *timeout)
INT WSAAPI send(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags)
int getpeereid(int s, uid_t *euid, gid_t *egid)
GLdouble GLdouble GLdouble r
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum const GLvoid * addr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
bool_t xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg)
struct opaque_auth _null_auth
u_int __rpc_get_t_size(int af, int proto, int size)
int __rpc_fd2sockinfo(SOCKET fd, struct __rpc_sockinfo *sip)
bool_t xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg)
_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 getsockname(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
bool_t __xdrrec_setnonblock(XDR *, int)
struct netbuf * __rpc_set_netbuf(struct netbuf *, const void *, size_t)
int __rpc_sockinfo2netid(struct __rpc_sockinfo *, const char **)
void __xprt_unregister_unlocked(SVCXPRT *)
bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t)
struct sockaddr_in6 xp_raddr
struct opaque_auth xp_verf
const struct __rpc_svcxprt::xp_ops2 * xp_ops2
const struct __rpc_svcxprt::xp_ops * xp_ops
struct timeval last_recv_time
char verf_body[MAX_AUTH_BYTES]
void xprt_register(SVCXPRT *xprt)
void xprt_unregister(SVCXPRT *xprt)
static SVCXPRT * makefd_xprt(SOCKET, u_int, u_int)
static void svc_vc_destroy(SVCXPRT *)
static bool_t rendezvous_request(SVCXPRT *, struct rpc_msg *)
static bool_t svc_vc_rendezvous_control(SVCXPRT *xprt, const u_int rq, void *in)
static bool_t svc_vc_freeargs(SVCXPRT *, xdrproc_t, void *)
void __xprt_set_raddr(SVCXPRT *xprt, const struct sockaddr_storage *ss)
static void svc_vc_ops(SVCXPRT *)
static bool_t svc_vc_reply(SVCXPRT *, struct rpc_msg *)
static int read_vc(void *, void *, int)
SVCXPRT * svc_fd_create(SOCKET fd, u_int sendsize, u_int recvsize)
bool_t __svc_clean_idle(fd_set *fds, int timeout, bool_t cleanblock)
static enum xprt_stat svc_vc_stat(SVCXPRT *)
static void __svc_vc_dodestroy(SVCXPRT *)
static bool_t svc_vc_getargs(SVCXPRT *, xdrproc_t, void *)
static void svc_vc_rendezvous_ops(SVCXPRT *)
static bool_t svc_vc_recv(SVCXPRT *, struct rpc_msg *)
static int write_vc(void *, void *, int)
static bool_t svc_vc_control(SVCXPRT *xprt, const u_int rq, void *in)
int __rpc_get_local_uid(SVCXPRT *transp, uid_t *uid)
static enum xprt_stat rendezvous_stat(SVCXPRT *)
SVCXPRT * svc_vc_create(int fd, u_int sendsize, u_int recvsize)
#define FD_ISSET(fd, set)
int PASCAL FAR WSAGetLastError(void)
#define XDR_DESTROY(xdrs)
bool_t(* xdrproc_t)(XDR *,...)
bool_t xdrrec_endofrecord(XDR *xdrs, bool_t sendnow)
bool_t xdrrec_eof(XDR *xdrs)
void xdrrec_create(XDR *xdrs, u_int sendsize, u_int recvsize, int *void *, int *readit, int *writeit)
bool_t xdrrec_skiprecord(XDR *xdrs)