Panda3D
Public Member Functions | Protected Member Functions

PStatListener Class Reference

This is the TCP rendezvous socket listener. More...

#include "pStatListener.h"

Inheritance diagram for PStatListener:
ConnectionListener ConnectionReader

List of all members.

Public Member Functions

 PStatListener (PStatServer *manager)

Protected Member Functions

virtual void connection_opened (const PT(Connection)&rendezvous, const NetAddress &address, const PT(Connection)&new_connection)
 An internal function called by ConnectionListener() when a new TCP connection has been established.

Detailed Description

This is the TCP rendezvous socket listener.

We need one of these to listen for new connections on the socket(s) added to the PStatServer.

Definition at line 32 of file pStatListener.h.


Member Function Documentation

void PStatListener::connection_opened ( const PT(Connection)&  rendezvous,
const NetAddress address,
const PT(Connection)&  new_connection 
) [protected, virtual]

An internal function called by ConnectionListener() when a new TCP connection has been established.

Implements ConnectionListener.

Definition at line 38 of file pStatListener.cxx.

References PStatServer::add_reader(), Connection::set_collect_tcp(), and PStatReader::set_tcp_connection().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations