Lines Matching defs:so
196 * If so is NULL, then it opens a socket for the given transport
207 struct socket *so, /* Connection end point */
214 bool_t madeso = FALSE; /* whether so opened here */
218 if (!so) {
223 so = __rpc_nconf2socket(nconf);
224 if (!so) {
236 if (!__rpc_socket2sockinfo(so, &si)) {
246 if (madeso || !__rpc_sockisbound(so)) {
248 if (bindresvport(so, NULL)) {
252 if (sobind(so, (struct sockaddr *)&ss,
259 solisten(so, -1, curthread);
261 if (bindresvport(so,
267 solisten(so, (int)bindaddr->qlen, curthread);
284 xprt = svc_vc_create(pool, so, sendsz, recvsz);
295 xprt = svc_dg_create(pool, so, sendsz, recvsz);
319 (void)soclose(so);
321 if (!madeso) /* so that svc_destroy doesnt close fd */