rllib  1
Public Member Functions | Public Attributes | Private Attributes | List of all members
rlEventLogServerThreads Class Reference

#include <rleventlogserver.h>

Collaboration diagram for rlEventLogServerThreads:
Collaboration graph
[legend]

Public Member Functions

 rlEventLogServerThreads (int port, rlEventLogServer *event_log_server)
 
virtual ~rlEventLogServerThreads ()
 
void start ()
 
int getPort ()
 

Public Attributes

rlEventLogServerevent_log_server
 

Private Attributes

rlThread acceptThread
 
int port
 

Detailed Description

This class starts a separate thread, that runs a rlEventLogServer log server.
It waits on TCP port for clients. See rlevent.h

Definition at line 62 of file rleventlogserver.h.

Constructor & Destructor Documentation

◆ rlEventLogServerThreads()

rlEventLogServerThreads::rlEventLogServerThreads ( int  port,
rlEventLogServer event_log_server 
)
event_log_server will not be deleted by the destructor

Definition at line 176 of file rleventlogserver.cpp.

177 {
178  rlwsa();
179  port = Port;
180  event_log_server = EventLogServer;
181 }
rlEventLogServer * event_log_server
int rlwsa()
Definition: rlsocket.cpp:68

◆ ~rlEventLogServerThreads()

rlEventLogServerThreads::~rlEventLogServerThreads ( )
virtual

Definition at line 183 of file rleventlogserver.cpp.

184 {
185 }

Member Function Documentation

◆ getPort()

int rlEventLogServerThreads::getPort ( )

Definition at line 195 of file rleventlogserver.cpp.

196 {
197  return port;
198 }

◆ start()

void rlEventLogServerThreads::start ( )

Definition at line 187 of file rleventlogserver.cpp.

188 {
189  if(port <= 0) return;
190  if(port >= 256*256) return;
191  if(event_log_server == NULL) return;
193 }
int create(void *(*func)(void *), void *argument)
Definition: rlthread.cpp:35
static void * rlAcceptThread(void *arg)
rlEventLogServer * event_log_server

Member Data Documentation

◆ acceptThread

rlThread rlEventLogServerThreads::acceptThread
private

Definition at line 75 of file rleventlogserver.h.

◆ event_log_server

rlEventLogServer* rlEventLogServerThreads::event_log_server

Definition at line 72 of file rleventlogserver.h.

◆ port

int rlEventLogServerThreads::port
private

Definition at line 76 of file rleventlogserver.h.


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