pion  5.0.6
Public Member Functions
HelloServer Class Reference

simple TCP server that just sends "Hello there!" to each connection More...

Inheritance diagram for HelloServer:
Inheritance graph
[legend]
Collaboration diagram for HelloServer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HelloServer (const unsigned int tcp_port)
virtual void handle_connection (tcp::connection_ptr &tcp_conn)

Detailed Description

simple TCP server that just sends "Hello there!" to each connection

Definition at line 22 of file helloserver.cpp.


Member Function Documentation

virtual void HelloServer::handle_connection ( tcp::connection_ptr &  tcp_conn) [inline, virtual]

handles a new TCP connection; derived classes SHOULD override this since the default behavior does nothing

Parameters:
tcp_connthe new TCP connection to handle

Reimplemented from pion::tcp::server.

Definition at line 26 of file helloserver.cpp.

References pion::tcp::connection::finish().


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