Lines Matching refs:sock
153 svctcp_create (int sock, u_int sendsize, u_int recvsize) in svctcp_create() argument
161 if (sock == RPC_ANYSOCK) in svctcp_create()
163 if ((sock = __socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) in svctcp_create()
172 if (bindresvport (sock, &addr)) in svctcp_create()
175 (void) __bind (sock, (struct sockaddr *) &addr, len); in svctcp_create()
177 if ((__getsockname (sock, (struct sockaddr *) &addr, &len) != 0) || in svctcp_create()
178 (__listen (sock, SOMAXCONN) != 0)) in svctcp_create()
182 (void) __close (sock); in svctcp_create()
201 xprt->xp_sock = sock; in svctcp_create()
255 int sock; in rendezvous_request() local
263 if ((sock = accept (xprt->xp_sock, (struct sockaddr *) &addr, &len)) < 0) in rendezvous_request()
273 xprt = makefd_xprt (sock, r->sendsize, r->recvsize); in rendezvous_request()
324 int sock = xprt->xp_sock; in readtcp() local
330 pollfd.fd = sock; in readtcp()
349 if ((len = __read (sock, buf, len)) > 0) in readtcp()