#include <ISTcpServer.h>
Definition at line 87 of file ISTcpServer.h.
◆ cISTcpServer() [1/2]
◆ ~cISTcpServer()
cISTcpServer::~cISTcpServer |
( |
| ) |
|
|
virtual |
◆ cISTcpServer() [2/2]
◆ Close()
int cISTcpServer::Close |
( |
| ) |
|
|
virtual |
Close the server
- Returns
- 0 if success, otherwise an error code
Reimplemented from cISStream.
Definition at line 103 of file ISTcpServer.cpp.
◆ IsOpen()
bool cISTcpServer::IsOpen |
( |
| ) |
|
|
inline |
Get whether the server is open
- Returns
- true if server open, false if not
Definition at line 131 of file ISTcpServer.h.
◆ Open()
int cISTcpServer::Open |
( |
const string & |
ipAddress, |
|
|
int |
port |
|
) |
| |
Closes, then opens a tcp server
- Parameters
-
ipAddress | the ip address to bind to, empty for auto |
port | the port to bind to |
- Returns
- 0 if success, otherwise an error code
Definition at line 45 of file ISTcpServer.cpp.
◆ Update()
void cISTcpServer::Update |
( |
| ) |
|
Update the server, receive connections, etc. Any clients that are disconnected will be closed and removed.
Definition at line 114 of file ISTcpServer.cpp.
◆ Write()
int cISTcpServer::Write |
( |
const uint8_t * |
data, |
|
|
int |
dataLength |
|
) |
| |
Write data to all connected clients - any clients that are disconnected will be closed and removed
- Parameters
-
data | the data to write |
dataLength | the number of bytes in data |
- Returns
- the number of bytes written
Definition at line 164 of file ISTcpServer.cpp.
◆ m_clients
vector<socket_t> cISTcpServer::m_clients |
|
private |
◆ m_delegate
◆ m_ipAddress
string cISTcpServer::m_ipAddress |
|
private |
◆ m_port
int32_t cISTcpServer::m_port |
|
private |
◆ m_socket
socket_t cISTcpServer::m_socket |
|
private |
The documentation for this class was generated from the following files: