59       void shutdown(std::string text = 
"unknown");
 
   89       int write(std::string data);
 
   90       void write(
char *buffer, 
int length);
 
   92       void output(std::stringstream &out);
 
  104       virtual void onUnregister();
 
  123       bool shutDown = 
false;
 
  125       void setBufferSize(
int length);
 
  164       virtual void receiveData(coreutils::ZString &buffer);
 
  172       bool readHangup = 
false;
 
  173         bool inHandler = 
false;
 
  197       std::queue<std::string> fifo;
 
int getDescriptor()
Get the descriptor for the socket.
Definition: Socket.cpp:41
int write(std::string data)
Definition: Socket.cpp:138
virtual void onRegistered()
Called after the socket has been registered with epoll processing.
Definition: Socket.cpp:57
virtual void receiveData(coreutils::ZString &buffer)
Definition: Socket.cpp:91
Socket(EPoll &ePoll, std::string text="")
Definition: Socket.cpp:11
bool eventReceived(struct epoll_event event)
Parse epoll event and call specified callbacks.
Definition: Socket.cpp:63
virtual void onRegister()
Called before the socket has registered with the epoll processing.
Definition: Socket.cpp:55
virtual ~Socket()
Definition: Socket.cpp:17
void setDescriptor(int descriptor)
Set the descriptor for the socket.
Definition: Socket.cpp:27
virtual void onDataReceived(std::string data)
Called when data is received from the socket.
Definition: Socket.cpp:83
virtual void onUnregistered()
Called when the socket has finished unregistering for the epoll processing.
Definition: Socket.cpp:61
void shutdown(std::string text="unknown")
Definition: Socket.cpp:155