14#ifndef CONNECTIONLISTENER_H
15#define CONNECTIONLISTENER_H
33 ConnectionListener(ConnectionManager *manager,
int num_threads,
34 const std::string &thread_name = std::string());
37 virtual void receive_datagram(
const NetDatagram &datagram);
38 virtual void connection_opened(
const PT(Connection) &rendezvous,
40 const PT(Connection) &new_connection)=0;
42 virtual bool process_incoming_data(SocketInfo *sinfo);
ConnectionReader(ConnectionManager *manager, int num_threads, const std::string &thread_name=std::string())
Creates a new ConnectionReader with the indicated number of threads to handle requests.
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound.
A specific kind of Datagram, especially for sending across or receiving from a network.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.