Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
OCL::ListenThread Class Reference
Inheritance diagram for OCL::ListenThread:
Inheritance graph
[legend]

Public Member Functions

virtual bool breakLoop ()
 
virtual void loop ()
 
 ~ListenThread ()
 
- Public Member Functions inherited from RTT::Activity
 Activity (base::RunnableInterface *r=0, const std::string &name="Activity")
 
 Activity (int priority, base::RunnableInterface *r=0, const std::string &name="Activity")
 
 Activity (int scheduler, int priority, base::RunnableInterface *r=0, const std::string &name="Activity")
 
 Activity (int scheduler, int priority, Seconds period, base::RunnableInterface *r=0, const std::string &name="Activity")
 
 Activity (int priority, Seconds period, base::RunnableInterface *r=0, const std::string &name="Activity")
 
 Activity (int scheduler, int priority, Seconds period, unsigned cpu_affinity, base::RunnableInterface *r=0, const std::string &name="Activity")
 
virtual bool execute ()
 
virtual void finalize ()
 
virtual unsigned getCpuAffinity () const
 
virtual Seconds getPeriod () const
 
virtual bool initialize ()
 
virtual bool isActive () const
 
virtual bool isPeriodic () const
 
virtual bool isRunning () const
 
virtual bool setCpuAffinity (unsigned cpu)
 
virtual bool setPeriod (Seconds period)
 
void setWaitPeriodPolicy (int p)
 
virtual bool start ()
 
virtual void step ()
 
virtual bool stop ()
 
virtual os::ThreadInterfacethread ()
 
virtual bool timeout ()
 
virtual bool trigger ()
 
virtual void work (base::RunnableInterface::WorkReason reason)
 
virtual ~Activity ()
 
- Public Member Functions inherited from RTT::base::ActivityInterface
 ActivityInterface ()
 
 ActivityInterface (RunnableInterface *run)
 
virtual RunnableInterfacegetRunner () const
 
virtual bool run (RunnableInterface *r)
 
virtual ~ActivityInterface ()
 
- Public Member Functions inherited from RTT::os::Thread
virtual int getMaxOverrun () const
 
virtual const char * getName () const
 
void getPeriod (secs &s, nsecs &ns) const
 
virtual nsecs getPeriodNS () const
 
virtual unsigned int getPid () const
 
virtual int getPriority () const
 
virtual int getScheduler () const
 
Seconds getStopTimeout () const
 
virtual RTOS_TASKgetTask ()
 
virtual const RTOS_TASKgetTask () const
 
virtual void setMaxOverrun (int m)
 
bool setPeriod (Seconds s)
 
bool setPeriod (TIME_SPEC p)
 
bool setPeriod (secs s, nsecs ns)
 
virtual bool setPriority (int priority)
 
virtual bool setScheduler (int sched_type)
 
void setStopTimeout (Seconds s)
 
 Thread (int scheduler, int priority, double period, unsigned cpu_affinity, const std::string &name)
 
virtual void yield ()
 
virtual ~Thread ()
 
- Public Member Functions inherited from RTT::os::ThreadInterface
bool isSelf () const
 
 ThreadInterface ()
 
unsigned int threadNumber () const
 
virtual ~ThreadInterface ()
 

Static Public Member Functions

static void createInstance (RTT::SocketMarshaller *marshaller, unsigned short port=3142)
 
static void destroyInstance ()
 
- Static Public Member Functions inherited from RTT::os::Thread
static void setLockTimeoutNoPeriod (double timeout_in_s)
 
static void setLockTimeoutPeriodFactor (double factor)
 
static void setStackSize (unsigned int ssize)
 

Private Member Functions

bool listen ()
 
 ListenThread (RTT::SocketMarshaller *marshaller, unsigned short port)
 
void removeInstance ()
 

Private Attributes

bool _accepting
 
RTT::SocketMarshaller_marshaller
 
unsigned short _port
 
int _sock
 
bool inBreak
 

Static Private Attributes

static ListenThread_instance = 0
 

Additional Inherited Members

- Public Types inherited from RTT::base::ActivityInterface
typedef boost::shared_ptr< ActivityInterfaceshared_ptr
 
- Protected Member Functions inherited from RTT::base::ActivityInterface
void disableRun (RunnableInterface *caller)
 
- Protected Member Functions inherited from RTT::os::Thread
void emergencyStop ()
 
void terminate ()
 
- Protected Attributes inherited from RTT::Activity
os::Condition msg_cond
 
os::Mutex msg_lock
 
bool mstopRequested
 
bool mtimeout
 
int mwaitpolicy
 
double update_period
 
- Protected Attributes inherited from RTT::base::ActivityInterface
RunnableInterfacerunner
 
- Protected Attributes inherited from RTT::os::Thread
bool active
 
MutexRecursive breaker
 
bool inloop
 
int maxOverRun
 
int msched_type
 
NANO_TIME period
 
bool prepareForExit
 
RTOS_TASK rtos_task
 
bool running
 
rt_sem_t sem
 
double stopTimeout
 
- Protected Attributes inherited from RTT::os::ThreadInterface
int threadnb
 
- Static Protected Attributes inherited from RTT::os::Thread
static unsigned int default_stack_size
 
static double lock_timeout_no_period_in_s
 
static double lock_timeout_period_factor
 

Detailed Description

ListenThread is a thread which waits for new incoming connections from clients.

Definition at line 52 of file TcpReporting.cpp.

Constructor & Destructor Documentation

OCL::ListenThread::ListenThread ( RTT::SocketMarshaller marshaller,
unsigned short  port 
)
inlineprivate

Definition at line 137 of file TcpReporting.cpp.

OCL::ListenThread::~ListenThread ( )
inline

Definition at line 158 of file TcpReporting.cpp.

Member Function Documentation

virtual bool OCL::ListenThread::breakLoop ( )
inlinevirtual

Reimplemented from RTT::Activity.

Definition at line 176 of file TcpReporting.cpp.

static void OCL::ListenThread::createInstance ( RTT::SocketMarshaller marshaller,
unsigned short  port = 3142 
)
inlinestatic

Definition at line 195 of file TcpReporting.cpp.

static void OCL::ListenThread::destroyInstance ( )
inlinestatic

Definition at line 204 of file TcpReporting.cpp.

bool OCL::ListenThread::listen ( )
inlineprivate

Definition at line 63 of file TcpReporting.cpp.

virtual void OCL::ListenThread::loop ( )
inlinevirtual

Reimplemented from RTT::Activity.

Definition at line 163 of file TcpReporting.cpp.

void OCL::ListenThread::removeInstance ( )
inlineprivate

Definition at line 149 of file TcpReporting.cpp.

Member Data Documentation

bool OCL::ListenThread::_accepting
private

Definition at line 60 of file TcpReporting.cpp.

ListenThread * OCL::ListenThread::_instance = 0
staticprivate

Definition at line 57 of file TcpReporting.cpp.

RTT::SocketMarshaller* OCL::ListenThread::_marshaller
private

Definition at line 58 of file TcpReporting.cpp.

unsigned short OCL::ListenThread::_port
private

Definition at line 59 of file TcpReporting.cpp.

int OCL::ListenThread::_sock
private

Definition at line 61 of file TcpReporting.cpp.

bool OCL::ListenThread::inBreak
private

Definition at line 56 of file TcpReporting.cpp.


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


ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:20