Lines Matching refs:fd
315 bool WebSocketBase::SetWebSocketTimeOut(int32_t fd, uint32_t timeoutLimit)
319 if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO,
324 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO,
334 bool WebSocketBase::SetWebSocketTimeOut(int32_t fd, uint32_t timeoutLimit)
338 if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)) != SOCKET_SUCCESS) {
342 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) != SOCKET_SUCCESS) {
353 int WebSocketBase::ShutdownSocket(int32_t fd)
355 return shutdown(fd, SD_BOTH);
359 int WebSocketBase::ShutdownSocket(int32_t fd)
361 return shutdown(fd, SHUT_RDWR);