Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tcpserver.h')
-rw-r--r--src/net/tcpserver.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tcpserver.h b/src/net/tcpserver.h
index dd87689..99639eb 100644
--- a/src/net/tcpserver.h
+++ b/src/net/tcpserver.h
@@ -32,12 +32,15 @@ public:
bool error() const;
protected:
- /// Accept incoming connections
+ /// accept an incoming connection
void accept();
+
/// Set the error state
void abort();
+
/// Returns the file descriptor the TCP server is listening on
int fd() const;
+
/// Called by accept() whenever a new client connects
virtual void client_connect(int const clientfd, std::string const host, int const port) = 0;