The base class for creating a TCP server.
More...
#include <AsyncTcpServerBase.h>
The base class for creating a TCP server.
- Author
- Tobias Blomberg
- Date
- 2003-12-07
Definition at line 112 of file AsyncTcpServerBase.h.
◆ TcpServerBase()
Default constuctor.
- Parameters
-
port_str | A port number or service name to listen to |
bind_ip | The IP to bind the server to |
◆ ~TcpServerBase()
◆ addConnection()
◆ createConnection()
◆ getClient()
◆ numberOfClients()
int Async::TcpServerBase::numberOfClients |
( |
void | | ) |
|
Get the number of clients that is connected to the server.
- Returns
- The number of connected clients
◆ removeConnection()
◆ writeAll()
Write data to all connected clients.
- Parameters
-
buf | The data buffer |
count | The number of bytes in the data buffer |
- Returns
- The number of bytes sent
◆ writeExcept()
Send data to all connected clients except the given client.
- Parameters
-
con | The TcpConnection object not to send to |
buf | The data buffer |
count | The number of bytes in the data buffer |
- Returns
- The number of bytes sent
◆ writeOnly()
Send data only to the given client.
- Parameters
-
con | The TcpConnection object to send to |
buf | The data buffer |
count | The number of bytes in data buffer |
- Returns
- The number of bytes sent
The documentation for this class was generated from the following file: