Lines Matching refs:sock
93 * xprt = svcudp_create(sock);
95 * If sock<0 then a socket is created, else sock is used.
96 * If the socket, sock is not bound to a port then svcudp_create
105 svcudp_bufcreate(sock, sendsz, recvsz)
106 register int sock;
115 if (sock == RPC_ANYSOCK) {
116 if ((sock = _socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {
125 if (bindresvport(sock, &addr)) {
127 (void) _bind(sock, (struct sockaddr *)&addr, len);
129 if (_getsockname(sock, (struct sockaddr *)&addr, &len) != 0) {
133 (void) close(sock);
140 (void) close(sock);
148 (void) close(sock);
157 (void) close(sock);
168 xprt->xp_sock = sock;
175 svcudp_create(sock)
176 int sock;
179 return (svcudp_bufcreate(sock, UDPMSGSIZE, UDPMSGSIZE));