![]() |
An open-source, flexible 3D physical simulation framework
|
#include <Socket.h>
Public Member Functions | |
TCPServer () | |
~TCPServer () | |
SocketError | open (unsigned short port) |
Open the server on the given port. More... | |
SocketError | hasClient () const |
Not Implemented yet. More... | |
SocketError | acceptConnection (TCPConnection *c) const |
Accepts an incoming connection. More... | |
void | close () |
closes the server. More... | |
bool | isOpen () |
Queries whether the server has been opened. More... | |
SocketError | reopen () |
Not Implemented yet. More... | |
void | setTimeout (double timeout) |
Not Implemented Yet. More... | |
double | getTimeout () const |
Not Implemented Yet. More... | |
Private Member Functions | |
TCPServer (const TCPServer &other) | |
TCPServer & | operator= (const TCPServer &other) |
Private Attributes | |
TCPBaseSocket * | s |
mars::utils::TCPServer::TCPServer | ( | ) |
Definition at line 117 of file Socket.cpp.
mars::utils::TCPServer::~TCPServer | ( | ) |
Definition at line 122 of file Socket.cpp.
|
private |
Definition at line 171 of file Socket.cpp.
SocketError mars::utils::TCPServer::acceptConnection | ( | TCPConnection * | c | ) | const |
Accepts an incoming connection.
c | An unconnected TCPConnection which will get connected to the remote client by this call. |
Definition at line 142 of file Socket.cpp.
void mars::utils::TCPServer::close | ( | ) |
closes the server.
It will no longer listen for incoming connections.
Definition at line 155 of file Socket.cpp.
double mars::utils::TCPServer::getTimeout | ( | ) | const |
Not Implemented Yet.
Definition at line 167 of file Socket.cpp.
SocketError mars::utils::TCPServer::hasClient | ( | ) | const |
Not Implemented yet.
Definition at line 139 of file Socket.cpp.
bool mars::utils::TCPServer::isOpen | ( | ) |
Queries whether the server has been opened.
Definition at line 158 of file Socket.cpp.
SocketError mars::utils::TCPServer::open | ( | unsigned short | port | ) |
Open the server on the given port.
Definition at line 129 of file Socket.cpp.
Definition at line 175 of file Socket.cpp.
SocketError mars::utils::TCPServer::reopen | ( | ) |
Not Implemented yet.
Definition at line 161 of file Socket.cpp.
void mars::utils::TCPServer::setTimeout | ( | double | timeout | ) |
Not Implemented Yet.
Definition at line 164 of file Socket.cpp.
|
private |