Lines Matching refs:service
226 PRFileDesc *service;
237 service = PR_Accept(stack, &client_address, PR_INTERVAL_NO_TIMEOUT);
239 PR_fprintf(logFile, "Server accept status [0x%p]\n", service);
240 if ((NULL == service) && (PR_WOULD_BLOCK_ERROR == PR_GetError()))
250 } while (NULL == service);
251 PR_ASSERT(NULL != service);
266 service, buffer + bytes_read, sizeof(buffer) - bytes_read,
273 polldesc.fd = service;
294 service, buffer + bytes_sent, bytes_read - bytes_sent,
302 polldesc.fd = service;
320 rv = PR_Shutdown(service, PR_SHUTDOWN_BOTH); PR_ASSERT(PR_SUCCESS == rv);
321 rv = PR_Close(service); PR_ASSERT(PR_SUCCESS == rv);
537 PRFileDesc *client, *service;
621 service = PR_NewTCPSocket(); PR_ASSERT(NULL != service);
625 rv = PR_SetSocketOption(service, &socket_noblock);
629 rv = PR_SetSocketOption(service, &socket_nodelay);
634 rv = PR_Bind(service, &any_address); PR_ASSERT(PR_SUCCESS == rv);
635 rv = PR_Listen(service, 10); PR_ASSERT(PR_SUCCESS == rv);
638 PR_USER_THREAD, Server, service,
655 rv = PR_Close(service); PR_ASSERT(PR_SUCCESS == rv);
663 service = PR_NewTCPSocket(); PR_ASSERT(NULL != service);
667 rv = PR_SetSocketOption(service, &socket_noblock);
671 rv = PR_SetSocketOption(service, &socket_nodelay);
675 PushLayer(service);
679 rv = PR_Bind(service, &any_address); PR_ASSERT(PR_SUCCESS == rv);
680 rv = PR_Listen(service, 10); PR_ASSERT(PR_SUCCESS == rv);
683 PR_USER_THREAD, Server, service,
700 rv = PR_Close(PopLayer(service)); PR_ASSERT(PR_SUCCESS == rv);