#include <P_UnixUDPConnection.h>
Inherits UDPConnectionInternal.
Public Member Functions | |
void | init (int the_fd) |
void | setEthread (EThread *e) |
void | errorAndDie (int e) |
int | callbackHandler (int event, void *data) |
LINK (UnixUDPConnection, polling_link) | |
LINK (UnixUDPConnection, callback_link) | |
SLINK (UnixUDPConnection, newconn_alink) | |
UnixUDPConnection (int the_fd) | |
virtual | ~UnixUDPConnection () |
Data Fields | |
InkAtomicList | inQueue |
int | onCallbackQueue |
Action * | callbackAction |
EThread * | ethread |
EventIO | ep |
Definition at line 37 of file P_UnixUDPConnection.h.
TS_INLINE UnixUDPConnection::UnixUDPConnection | ( | int | the_fd | ) |
Definition at line 63 of file P_UnixUDPConnection.h.
References callbackHandler(), UDPConnectionInternal::fd, ink_atomiclist_init(), inQueue, and SET_HANDLER.
UnixUDPConnection::~UnixUDPConnection | ( | ) | [virtual] |
Definition at line 35 of file UnixUDPConnection.cc.
References callbackAction, Action::cancel(), SocketManager::close(), Debug, UDPConnectionInternal::fd, UDPPacketInternal::free(), UDPConnection::getPortNum(), ink_atomiclist_popall(), inQueue, NO_FD, socketManager, and UDPConnectionInternal::tobedestroyed.
int UnixUDPConnection::callbackHandler | ( | int | event, | |
void * | data | |||
) |
Definition at line 65 of file UnixUDPConnection.cc.
References callbackAction, UDPConnectionInternal::continuation, Debug, Queue< C, L >::dequeue(), UDPConnection::destroy(), UDPPacketInternal::free(), Continuation::handleEvent(), ink_atomiclist_popall(), inQueue, NET_EVENT_DATAGRAM_ERROR, NET_EVENT_DATAGRAM_READ_READY, Queue< C, L >::push(), UDPConnection::Release(), and UDPConnection::shouldDestroy().
Referenced by init(), UDPNetProcessorInternal::udp_callback(), and UnixUDPConnection().
TS_INLINE void UnixUDPConnection::errorAndDie | ( | int | e | ) |
Definition at line 96 of file P_UnixUDPConnection.h.
TS_INLINE void UnixUDPConnection::init | ( | int | the_fd | ) |
Definition at line 76 of file P_UnixUDPConnection.h.
References callbackAction, callbackHandler(), ethread, UDPConnectionInternal::fd, ink_atomiclist_init(), inQueue, onCallbackQueue, and SET_HANDLER.
UnixUDPConnection::LINK | ( | UnixUDPConnection | , | |
polling_link | ||||
) |
UnixUDPConnection::LINK | ( | UnixUDPConnection | , | |
callback_link | ||||
) |
TS_INLINE void UnixUDPConnection::setEthread | ( | EThread * | e | ) |
Definition at line 90 of file P_UnixUDPConnection.h.
References ethread.
UnixUDPConnection::SLINK | ( | UnixUDPConnection | , | |
newconn_alink | ||||
) |
Definition at line 51 of file P_UnixUDPConnection.h.
Referenced by callbackHandler(), init(), UDPNetProcessorInternal::udp_callback(), and ~UnixUDPConnection().
Definition at line 53 of file P_UnixUDPConnection.h.
Referenced by UDPConnection::Release().
Definition at line 52 of file P_UnixUDPConnection.h.
Referenced by UDPConnection::bindToThread(), init(), UDPConnection::send(), and setEthread().
Definition at line 49 of file P_UnixUDPConnection.h.
Referenced by callbackHandler(), init(), UDPNetProcessorInternal::udp_read_from_net(), UnixUDPConnection(), and ~UnixUDPConnection().
Definition at line 50 of file P_UnixUDPConnection.h.
Referenced by init(), UDPNetHandler::mainNetEvent(), and UDPNetProcessorInternal::udp_read_from_net().