32    class Socket : 
public std::streambuf,
    48          int & operator = (
const int &i) { 
return value = i; }
    49          operator int ()
 const { 
return value; }
    69       void write(std::string data);
    70       void write(
char *buffer, 
int length);
    72       void output(std::stringstream &out);
    96       bool shutDown = 
false;
    98       void setBufferSize(
int length);
   108       virtual void onTLSInit();
   133       virtual void receiveData(
char *buffer, 
int bufferLength);
   140       struct epoll_event event;  
   151       void resetReadWrite(
int x);
   175       std::queue<std::string> fifo;
 
virtual void receiveData(char *buffer, int bufferLength)
Definition: Socket.cpp:86
virtual void onUnregistered()
Called when the socket has finished unregistering for the epoll processing. 
Definition: Socket.cpp:44
Definition: Command.cpp:4
void enable(bool mode)
Enable the socket to read or write based upon buffer. 
Definition: Socket.cpp:74
virtual void onDataReceived(std::string data)=0
Called when data is received from the socket. 
void setDescriptor(int descriptor)
Set the descriptor for the socket. 
Definition: Socket.cpp:21
void write(std::string data)
Definition: Socket.cpp:131
void eventReceived(struct epoll_event event)
Parse epoll event and call specified callbacks. 
Definition: Socket.cpp:48
int getDescriptor()
Get the descriptor for the socket. 
Definition: Socket.cpp:29
virtual void onRegistered()
Called when the socket has finished registering with the epoll processing. 
Definition: Socket.cpp:40
virtual void onConnected()
Called when socket is open and ready to communicate. 
Definition: Socket.cpp:118