A brief file description. More...
#include "ink_sock.h"
#include "I_NetVConnection.h"
#include "P_UnixNetState.h"
#include "P_Connection.h"
Go to the source code of this file.
Data Structures | |
struct | OOB_callback |
class | UnixNetVConnection |
Defines | |
#define | NET_VC_SHUTDOWN_READ 1 |
#define | NET_VC_SHUTDOWN_WRITE 2 |
Typedefs | |
typedef int(UnixNetVConnection::* | NetVConnHandler )(int, void *) |
Functions | |
void | close_UnixNetVConnection (UnixNetVConnection *vc, EThread *t) |
void | write_to_net (NetHandler *nh, UnixNetVConnection *vc, EThread *thread) |
void | write_to_net_io (NetHandler *nh, UnixNetVConnection *vc, EThread *thread) |
Variables | |
ClassAllocator < UnixNetVConnection > | netVCAllocator |
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 P_UnixNetVConnection.h.
#define NET_VC_SHUTDOWN_READ 1 |
Definition at line 225 of file P_UnixNetVConnection.h.
Referenced by UnixNetVConnection::do_io_shutdown(), and UnixNetVConnection::mainEvent().
#define NET_VC_SHUTDOWN_WRITE 2 |
Definition at line 226 of file P_UnixNetVConnection.h.
Referenced by UnixNetVConnection::mainEvent().
typedef int(UnixNetVConnection::* NetVConnHandler)(int, void *) |
Definition at line 257 of file P_UnixNetVConnection.h.
void close_UnixNetVConnection | ( | UnixNetVConnection * | vc, | |
EThread * | t | |||
) |
Definition at line 95 of file UnixNetVConnection.cc.
References UnixNetVConnection::active_timeout, UnixNetVConnection::active_timeout_in, Action::cancel_action(), UnixNetVConnection::cancel_OOB(), Connection::close(), UnixNetVConnection::con, UnixNetVConnection::ep, UnixNetVConnection::free(), NetState::in_enabled_list, UnixNetVConnection::inactivity_timeout_in, UnixNetVConnection::next_inactivity_timeout_at, UnixNetVConnection::nh, UnixNetVConnection::read, EventIO::stop(), and UnixNetVConnection::write.
Referenced by UnixNetVConnection::acceptEvent(), NetAccept::acceptFastEvent(), InactivityCop::check_inactivity(), UnixNetVConnection::do_io_close(), UnixNetVConnection::mainEvent(), NetHandler::mainNetEvent(), read_signal_and_update(), and write_signal_and_update().
void write_to_net | ( | NetHandler * | nh, | |
UnixNetVConnection * | vc, | |||
EThread * | thread | |||
) |
Definition at line 344 of file UnixNetVConnection.cc.
References Thread::mutex, net_calls_to_writetonet_afterpoll_stat, net_calls_to_writetonet_stat, NET_DEBUG_COUNT_DYN_STAT, and write_to_net_io().
Referenced by NetHandler::mainNetEvent(), and UnixNetVConnection::reenable_re().
void write_to_net_io | ( | NetHandler * | nh, | |
UnixNetVConnection * | vc, | |||
EThread * | thread | |||
) |
Definition at line 356 of file UnixNetVConnection.cc.
References VIO::_cont, VIO::buffer, IOBufferReader::consume(), NetState::enabled, EVENT_CONT, EVENT_DONE, EVENT_ERROR, UnixNetVConnection::getSSLClientConnection(), UnixNetVConnection::getSSLHandShakeComplete(), ink_assert, UnixNetVConnection::load_buffer_and_write(), Ptr< T >::m_ptr, VIO::mutex, Thread::mutex, MUTEX_TRY_LOCK_FOR, VIO::ndone, net_activity(), net_calls_to_write_nodata_stat, NET_DEBUG_COUNT_DYN_STAT, NET_SUM_DYN_STAT, net_write_bytes_stat, VIO::ntodo(), VIO::op, UnixNetVConnection::read, IOBufferReader::read_avail(), read_reschedule(), MIOBufferAccessor::reader(), SSL_EVENT_CLIENT, SSL_EVENT_SERVER, SSL_HANDSHAKE_WANT_ACCEPT, SSL_HANDSHAKE_WANT_CONNECT, SSL_HANDSHAKE_WANT_READ, SSL_HANDSHAKE_WANT_WRITE, UnixNetVConnection::sslStartHandShake(), NetState::triggered, VC_EVENT_EOS, VC_EVENT_WRITE_COMPLETE, VC_EVENT_WRITE_READY, NetState::vio, VIO::WRITE, UnixNetVConnection::write, MIOBuffer::write_avail(), write_disable(), write_reschedule(), write_signal_and_update(), write_signal_done(), write_signal_error(), and MIOBufferAccessor::writer().
Referenced by write_to_net().