Searched refs:nsock (Results 1 – 3 of 3) sorted by relevance
/external/clearsilver/util/test/ |
D | net_test.c | 28 NSOCK *nsock; in client_proc() local 34 err = ne_net_connect(&nsock, "localhost", port, 10, 10); in client_proc() 41 err = ne_net_write_int(nsock, uListLength(stuff)); in client_proc() 50 err = ne_net_write_int(nsock, thing->n); in client_proc() 55 err = ne_net_write_str(nsock, thing->s); in client_proc() 62 ne_net_close(&nsock); in client_proc() 70 NSOCK *nsock; in server_proc() local 79 err = ne_net_accept(&nsock, server, 10); in server_proc() 85 err = ne_net_read_int(nsock, &x); in server_proc() 100 err = ne_net_read_int(nsock, &i); in server_proc() [all …]
|
/external/dropbear/ |
D | dbutil.c | 191 unsigned int nsock; in dropbear_listen() local 233 nsock = 0; in dropbear_listen() 234 for (res = res0; res != NULL && nsock < sockcount; in dropbear_listen() 238 socks[nsock] = socket(res->ai_family, res->ai_socktype, in dropbear_listen() 241 sock = socks[nsock]; /* For clarity */ in dropbear_listen() 275 nsock++; in dropbear_listen() 283 if (nsock == 0) { in dropbear_listen() 294 TRACE(("leave dropbear_listen: success, %d socks bound", nsock)) in dropbear_listen() 295 return nsock; in dropbear_listen()
|
D | svr-main.c | 400 int nsock; in listensockets() local 408 nsock = dropbear_listen(svr_opts.addresses[i], svr_opts.ports[i], &sock[sockpos], in listensockets() 412 if (nsock < 0) { in listensockets() 419 sockpos += nsock; in listensockets()
|