Privacy
An open-source, flexible 3D physical simulation framework
mars::utils::TCPServer Class Reference

#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)
 
TCPServeroperator= (const TCPServer &other)
 

Private Attributes

TCPBaseSockets
 

Detailed Description

Definition at line 85 of file Socket.h.

Constructor & Destructor Documentation

◆ TCPServer() [1/2]

mars::utils::TCPServer::TCPServer ( )

Definition at line 117 of file Socket.cpp.

◆ ~TCPServer()

mars::utils::TCPServer::~TCPServer ( )

Definition at line 122 of file Socket.cpp.

◆ TCPServer() [2/2]

mars::utils::TCPServer::TCPServer ( const TCPServer other)
private

Definition at line 171 of file Socket.cpp.

Member Function Documentation

◆ acceptConnection()

SocketError mars::utils::TCPServer::acceptConnection ( TCPConnection c) const

Accepts an incoming connection.

Parameters
cAn unconnected TCPConnection which will get connected to the remote client by this call.

Definition at line 142 of file Socket.cpp.

◆ close()

void mars::utils::TCPServer::close ( )

closes the server.

It will no longer listen for incoming connections.

Definition at line 155 of file Socket.cpp.

◆ getTimeout()

double mars::utils::TCPServer::getTimeout ( ) const

Not Implemented Yet.

Definition at line 167 of file Socket.cpp.

◆ hasClient()

SocketError mars::utils::TCPServer::hasClient ( ) const

Not Implemented yet.

Definition at line 139 of file Socket.cpp.

◆ isOpen()

bool mars::utils::TCPServer::isOpen ( )

Queries whether the server has been opened.

Definition at line 158 of file Socket.cpp.

◆ open()

SocketError mars::utils::TCPServer::open ( unsigned short  port)

Open the server on the given port.

Definition at line 129 of file Socket.cpp.

◆ operator=()

TCPServer & mars::utils::TCPServer::operator= ( const TCPServer other)
private

Definition at line 175 of file Socket.cpp.

◆ reopen()

SocketError mars::utils::TCPServer::reopen ( )

Not Implemented yet.

Definition at line 161 of file Socket.cpp.

◆ setTimeout()

void mars::utils::TCPServer::setTimeout ( double  timeout)

Not Implemented Yet.

Definition at line 164 of file Socket.cpp.

Member Data Documentation

◆ s

TCPBaseSocket* mars::utils::TCPServer::s
private

Definition at line 127 of file Socket.h.


The documentation for this class was generated from the following files: