Searched defs:sockfd (Results 1 - 5 of 5) sorted by relevance
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | nbconn.c | 249 PRFileDesc *sockfd, *newsockfd; local 253 sockfd = sp->sp_fd; 254 if ((newsockfd = PR_Accept(sockfd, NULL, 293 PRFileDesc *sockfd = NULL, *conn_fd = NULL; local 307 if ((sockfd = PR_NewTCPSocket()) == NULL) { 321 while (PR_Bind(sockfd, &netaddr) < 0) { 333 if (PR_Listen(sockfd, 32) < 0) { 340 if (PR_GetSockName(sockfd, &netaddr) < 0) { 368 sp.sp_fd = sockfd; 469 if (sockfd) { 490 PRFileDesc *sockfd = NULL, *conn_fd = NULL; local [all...] |
H A D | thrpool_client.c | 118 * read data from sockfd into buf 121 readn(PRFileDesc *sockfd, char *buf, int len) argument 131 bytes = PR_Recv(sockfd, buf + offset, rem, 0, 144 * write data from buf to sockfd 147 writen(PRFileDesc *sockfd, char *buf, int len) argument 156 bytes = PR_Send(sockfd, buf + offset, rem, 0, 178 PRFileDesc *sockfd; local 203 if ((sockfd = PR_OpenTCPSocket(PR_AF_INET)) == NULL) { 210 if (PR_Connect(sockfd, &netaddr,PR_INTERVAL_NO_TIMEOUT) < 0){ 224 if (writen(sockfd, out_bu [all...] |
H A D | thrpool_server.c | 155 PRFileDesc *sockfd; local 161 sockfd = sp->iod.socket; 169 bytes = PR_Recv(sockfd, buf + offset, rem, 0, timeout); 197 PRFileDesc *sockfd; local 201 sockfd = sp->iod.socket; 206 bytes = PR_Send(sockfd, buf, sp->bytes, 0, PR_INTERVAL_NO_TIMEOUT); 224 if (PR_Shutdown(sockfd, PR_SHUTDOWN_BOTH) < 0) { 228 PR_Close(sockfd); 317 PRFileDesc *sockfd; local 327 if ((sockfd [all...] |
H A D | socket.c | 166 PRFileDesc *sockfd; /* socket to read from/write to */ member in struct:Serve_Client_Param 213 * read data from sockfd into buf 216 readn(PRFileDesc *sockfd, char *buf, int len) argument 231 bytes = PR_Recv(sockfd, buf + offset, rem, 0, 240 if (PR_NT_CancelIo(sockfd) != PR_SUCCESS) 254 * write data from buf to sockfd 257 writen(PRFileDesc *sockfd, char *buf, int len) argument 266 bytes = PR_Send(sockfd, buf + offset, rem, 0, 286 PRFileDesc *sockfd; local 290 sockfd 408 PRFileDesc *sockfd, *newsockfd; local 536 PRFileDesc *sockfd; local 663 PRFileDesc *sockfd; local 766 PRFileDesc *sockfd; local 1140 PRFileDesc *sockfd; local 1492 PRFileDesc *sockfd; local 1738 PRFileDesc *sockfd = NULL, *newsockfd; local [all...] |
/vbox/src/VBox/Devices/Network/slirp/libalias/ |
H A D | alias_db.c | 341 int sockfd; /* socket descriptor */ member in struct:alias_link 681 if (GetSocket(la, port_net, &lnk->sockfd, lnk->link_type)) { 708 GetSocket(struct libalias *la, u_short port_net, int *sockfd, int link_type) argument 730 fprintf(stderr, "socket() error %d\n", *sockfd); 749 *sockfd = sock; 922 if (lnk->sockfd != -1) { 924 closesocket(lnk->sockfd); 996 lnk->sockfd = -1;
|
Completed in 192 milliseconds