Lines Matching defs:sockp
97 * If *sockp<0, *sockp is set to a newly created TCP socket and it is
98 * connected to raddr. If *sockp non-negative then
104 * NB: *sockp is copied into a private area.
105 * NB: It is the clients responsibility to close *sockp.
110 clnttcp_create(raddr, prog, vers, sockp, sendsz, recvsz)
114 register int *sockp;
156 if (*sockp < 0) {
157 *sockp = _socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
158 i = bindresvport(*sockp, (struct sockaddr_in *)0);
159 if ((*sockp < 0)||
160 (connect(*sockp, (struct sockaddr *)raddr,
164 (void) close(*sockp);
175 ct->ct_sock = *sockp;
197 (void) close(*sockp);