A brief file description. More...
#include "P_Net.h"
Go to the source code of this file.
Defines | |
#define | ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) |
Typedefs | |
typedef int(NetAccept::* | NetAcceptHandler )(int, void *) |
Functions | |
static void | safe_delay (int msec) |
static int | send_throttle_message (NetAccept *na) |
int | net_accept (NetAccept *na, void *ep, bool blockable) |
Variables | |
volatile int | dummy_volatile = 0 |
int | accept_till_done = 1 |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file UnixNetAccept.cc.
#define ROUNDUP | ( | x, | ||
y | ||||
) | ((((x)+((y)-1))/(y))*(y)) |
Definition at line 29 of file UnixNetAccept.cc.
Referenced by NetAccept::acceptFastEvent().
typedef int(NetAccept::* NetAcceptHandler)(int, void *) |
Definition at line 31 of file UnixNetAccept.cc.
int net_accept | ( | NetAccept * | na, | |
void * | ep, | |||
bool | blockable | |||
) |
Definition at line 82 of file UnixNetAccept.cc.
References Server::accept(), accept_till_done, UnixNetVConnection::acceptEvent(), UnixNetVConnection::action_, NetAccept::action_, Connection::addr, NetAccept::alloc_cache, NetProcessor::allocate_vc(), ats_ip_copy(), UnixNetVConnection::closed, UnixNetVConnection::con, Event::ethread, NetAccept::etype, EVENT_ERROR, EVENT_NONE, eventProcessor, Server::f_inbound_transparent, Connection::fd, NetAccept::getNetProcessor(), Continuation::handleEvent(), UnixNetVConnection::id, ink_get_hrtime(), EThread::is_event_type(), Continuation::mutex, MUTEX_LOCK, MUTEX_TAKE_TRY_LOCK_FOR, MUTEX_UNTAKE_LOCK, net_connections_currently_open_stat, net_next_connection_number(), NET_SUM_GLOBAL_DYN_STAT, new_ProxyMutex(), NO_FD, EventProcessor::schedule_imm(), NetAccept::server, UnixNetVConnection::server_addr, SET_CONTINUATION_HANDLER, NetVConnection::set_is_transparent(), and UnixNetVConnection::submit_time.
static void safe_delay | ( | int | msec | ) | [static] |
Definition at line 36 of file UnixNetAccept.cc.
References SocketManager::poll(), and socketManager.
Referenced by NetAccept::do_blocking_accept(), and send_throttle_message().
static int send_throttle_message | ( | NetAccept * | na | ) | [static] |
Definition at line 47 of file UnixNetAccept.cc.
References Server::accept(), ACCEPT, check_net_throttle(), Connection::fd, ink_get_hrtime(), NET_THROTTLE_DELAY, SocketManager::poll(), SocketManager::read(), safe_delay(), NetAccept::server, socketManager, THROTTLE_AT_ONCE, UnixNetProcessor::throttle_error_message, unix_netProcessor, and SocketManager::write().
Referenced by NetAccept::do_blocking_accept().
int accept_till_done = 1 |
Definition at line 33 of file UnixNetAccept.cc.
Referenced by NetAccept::acceptFastEvent(), NetAccept::do_blocking_accept(), and net_accept().
volatile int dummy_volatile = 0 |
Definition at line 32 of file UnixNetAccept.cc.