59       void shutdown(std::string text = 
"unknown");
 
   83       bool eventReceived(
struct epoll_event event, 
long long eventId); 
 
   90       void write(
char *buffer, 
int length);
 
   92       void output(std::stringstream &out);
 
  104       virtual void onUnregister();
 
  118       volatile bool shutDown = 
false;
 
  124       void setBufferSize(
int length);
 
  163       virtual void receiveData(coreutils::ZString &buffer);
 
  170       bool readHangup = 
false;
 
  171         volatile bool inHandler = 
false;
 
  190       std::queue<std::string> fifo;
 
int getDescriptor()
Get the descriptor for the socket.
Definition: Socket.cpp:44
bool eventReceived(struct epoll_event event, long long eventId)
Parse epoll event and call specified callbacks.
Definition: Socket.cpp:65
virtual void onRegistered()
Called after the socket has been registered with epoll processing.
Definition: Socket.cpp:59
virtual void receiveData(coreutils::ZString &buffer)
Definition: Socket.cpp:94
Socket(EPoll &ePoll, std::string text="")
Definition: Socket.cpp:11
int write(std::string data, Socket *sender)
Definition: Socket.cpp:137
virtual void onRegister()
Called before the socket has registered with the epoll processing.
Definition: Socket.cpp:57
virtual ~Socket()
Definition: Socket.cpp:16
void setDescriptor(int descriptor)
Set the descriptor for the socket.
Definition: Socket.cpp:29
virtual void onDataReceived(std::string data)
Called when data is received from the socket.
Definition: Socket.cpp:86
virtual void onUnregistered()
Called when the socket has finished unregistering for the epoll processing.
Definition: Socket.cpp:63
void shutdown(std::string text="unknown")
Definition: Socket.cpp:155