Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends

roc::UdpControlSocket Class Reference

#include <UdpDevice.h>

Collaboration diagram for roc::UdpControlSocket:
Collaboration graph
[legend]

Public Member Functions

 UdpControlSocket (UdpDevice *dev, int fd)
virtual ~UdpControlSocket ()
virtual double ProcessTimeout (double last_diff)
virtual void ProcessEvent (const dabc::EventId &)
virtual int ExecuteCommand (dabc::Command cmd)

Protected Types

enum  EUdpEvents { evntSendCtrl = evntSocketLast + 1, evntCheckCmd }

Protected Member Functions

void checkCommandsQueue ()
void completeLoop (bool res, int len=0)
void SendDisconnect ()
void SetLastSendTime ()

Protected Attributes

UdpDevicefDev
dabc::CommandsQueue fUdpCmds
bool fCtrlRuns
UdpMessageFull fControlSend
unsigned fControlSendSize
UdpMessageFull fControlRecv
uint32_t fPacketCounter
double fTotalTmoutSec
bool fFastMode
int fLoopCnt
dabc::TimeStamp fSendLastOper

Friends

class UdpDevice
class UdpDataSocket

Detailed Description

Definition at line 36 of file UdpDevice.h.


Member Enumeration Documentation

Enumerator:
evntSendCtrl 
evntCheckCmd 

Definition at line 41 of file UdpDevice.h.


Constructor & Destructor Documentation

roc::UdpControlSocket::UdpControlSocket ( UdpDevice dev,
int  fd 
)

Definition at line 36 of file UdpDevice.cxx.

References SetLastSendTime().

roc::UdpControlSocket::~UdpControlSocket (  )  [virtual]

Definition at line 53 of file UdpDevice.cxx.

References roc::UdpDevice::fCtrlCh, fDev, and fUdpCmds.


Member Function Documentation

void roc::UdpControlSocket::checkCommandsQueue (  )  [protected]
void roc::UdpControlSocket::completeLoop ( bool  res,
int  len = 0 
) [protected]
int roc::UdpControlSocket::ExecuteCommand ( dabc::Command  cmd  )  [virtual]

Definition at line 239 of file UdpDevice.cxx.

References checkCommandsQueue(), and fUdpCmds.

void roc::UdpControlSocket::ProcessEvent ( const dabc::EventId &  evnt  )  [virtual]
double roc::UdpControlSocket::ProcessTimeout ( double  last_diff  )  [virtual]
void roc::UdpControlSocket::SendDisconnect (  )  [protected]
void roc::UdpControlSocket::SetLastSendTime (  )  [protected]

Definition at line 62 of file UdpDevice.cxx.

References fSendLastOper.

Referenced by roc::UdpDataSocket::CheckNextRequest(), ProcessEvent(), and UdpControlSocket().


Friends And Related Function Documentation

friend class UdpDataSocket [friend]

Definition at line 38 of file UdpDevice.h.

friend class UdpDevice [friend]

Definition at line 37 of file UdpDevice.h.


Field Documentation

Definition at line 51 of file UdpDevice.h.

Referenced by completeLoop(), ProcessEvent(), and roc::UdpDevice::takeStat().

Definition at line 49 of file UdpDevice.h.

Referenced by checkCommandsQueue(), completeLoop(), ProcessEvent(), and SendDisconnect().

Definition at line 50 of file UdpDevice.h.

Referenced by checkCommandsQueue(), ProcessEvent(), and SendDisconnect().

Definition at line 48 of file UdpDevice.h.

Referenced by checkCommandsQueue(), completeLoop(), ProcessEvent(), and ProcessTimeout().

Definition at line 56 of file UdpDevice.h.

Referenced by checkCommandsQueue(), ProcessEvent(), and ProcessTimeout().

Definition at line 57 of file UdpDevice.h.

Referenced by checkCommandsQueue(), and ProcessEvent().

Definition at line 53 of file UdpDevice.h.

Referenced by checkCommandsQueue().

dabc::TimeStamp roc::UdpControlSocket::fSendLastOper [protected]

Definition at line 59 of file UdpDevice.h.

Referenced by ProcessTimeout(), and SetLastSendTime().

Definition at line 55 of file UdpDevice.h.

Referenced by checkCommandsQueue(), ProcessEvent(), and ProcessTimeout().

dabc::CommandsQueue roc::UdpControlSocket::fUdpCmds [protected]

The documentation for this class was generated from the following files: