59       void shutdown(std::string text = 
"unknown");
 
   86       int write(std::string data);
 
   87       void write(
char *buffer, 
int length);
 
   89       void output(std::stringstream &out);
 
  101       virtual void onUnregister();
 
  120       bool shutDown = 
false;
 
  122       void setBufferSize(
int length);
 
  161       virtual void receiveData(coreutils::ZString buffer);
 
  169       bool readHangup = 
false;
 
  194       std::queue<std::string> fifo;
 
  
int write(std::string data)
Definition: Socket.cpp:145
virtual void onRegistered()
Called after the socket has been registered with epoll processing.
Definition: Socket.cpp:55
virtual void onDataReceived(std::string data)
Called when data is received from the socket.
Definition: Socket.cpp:92
Socket(EPoll &ePoll, std::string text="")
Definition: Socket.cpp:8
void shutdown(std::string text="unknown")
Definition: Socket.cpp:164
virtual void onRegister()
Called before the socket has registered with the epoll processing.
Definition: Socket.cpp:53
bool eventReceived(struct epoll_event event)
Parse epoll event and call specified callbacks.
Definition: Socket.cpp:61
virtual void onUnregistered()
Called when the socket has finished unregistering for the epoll processing.
Definition: Socket.cpp:59
virtual void receiveData(coreutils::ZString buffer)
Definition: Socket.cpp:100
int getDescriptor()
Get the descriptor for the socket.
Definition: Socket.cpp:40
~Socket()
Definition: Socket.cpp:14
void setDescriptor(int descriptor)
Set the descriptor for the socket.
Definition: Socket.cpp:24