|
void | onDataReceived (char *data, int length) |
| Called when data is received from the socket. More...
|
|
void | onStreamDataReceived (BMAStreamFrame *frame) |
|
virtual void | onConnected () |
| Called when socket is open and ready to communicate. More...
|
|
virtual void | protocol (char *data, int length) |
|
void | setBufferSize (int length) |
|
|
string | command |
|
struct sockaddr_in | client_addr |
|
socklen_t | client_addr_len |
|
class { |
} | bufferSize |
|
string | name |
|
string | tag |
|
BMAEPoll & | ePoll |
|
bool | shutDown = false |
|
◆ onDataReceived()
void BMAStreamSocket::onDataReceived |
( |
char * |
data, |
|
|
int |
length |
|
) |
| |
|
protectedvirtual |
Called when data is received from the socket.
The onDataReceived method is called when the socket has received an event from epoll and there is data ready to be read from the socket. The default handler will pull the data and put it into the streambuf for the socket. EPOLLIN
Reimplemented from BMASession.
The documentation for this class was generated from the following files:
- /home/barant/Documents/Development/BMASockets/BMAStreamSocket.h
- /home/barant/Documents/Development/BMASockets/BMAStreamSocket.cpp