|
|
| BMAConsole (BMAEPoll &ePoll, string url, short int port) |
| |
|
BMASession * | getSocketAccept () |
| |
|
| BMATCPServerSocket (BMAEPoll &ePoll, string url, short int port, string commandName) |
| |
| virtual BMASession * | accept () |
| |
|
| BMATCPSocket (BMAEPoll &ePoll) |
| |
|
string | getClientAddress () |
| | Get the client network address as xxx.xxx.xxx.xxx.
|
| |
|
string | getClientAddressAndPort () |
| | Get the client network address and port as xxx.xxx.xxx.xxx:ppppp.
|
| |
|
int | getClientPort () |
| | Get the client network port number.
|
| |
| virtual void | output (stringstream &out) |
| |
| void | onConnected () override |
| | Called when socket is open and ready to communicate. More...
|
| |
|
| BMASocket (BMAEPoll &ePoll) |
| |
| | ~BMASocket () |
| |
|
void | setDescriptor (int descriptor) |
| | Set the descriptor for the socket.
|
| |
|
int | getDescriptor () |
| | Get the descriptor for the socket.
|
| |
| void | eventReceived (struct epoll_event event) |
| | Parse epoll event and call specified callbacks. More...
|
| |
|
void | write (char *buffer, int length) |
| |
|
void | output (stringstream &out) |
| |
| virtual void | onRegistered () |
| | Called when the socket has finished registering with the epoll processing. More...
|
| |
Public Member Functions inherited from BMACommand |
|
| BMACommand (string commandName) |
| |
|
|
struct sockaddr_in | client_addr |
| |
|
socklen_t | client_addr_len |
| |
|
class { |
| } | bufferSize |
| |
|
string | name |
| |
|
string | tag |
| |
Public Attributes inherited from BMACommand |
|
string | commandName |
| |
| void | onDataReceived (char *data, int length) override |
| | Called when data is received from the socket. More...
|
| |
|
int | processCommand (BMASession *session) |
| |
|
void | setBufferSize (int length) |
| |
|
vector< BMASession * > | sessions |
| |
|
BMAEPoll & | ePoll |
| |
|
bool | shutDown = false |
| |
The documentation for this class was generated from the following files:
- /home/barant/Documents/Development/BMASockets/BMAConsole.h
- /home/barant/Documents/Development/BMASockets/BMAConsole.cpp