Panda3D
|
Base functionality for a TCP rendezvous socket. More...
#include "socket_tcp_listen.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
bool | GetIncomingConnection (Socket_TCP &newsession, Socket_Address &address) |
bool | GetIncomingConnection (SOCKET &newsession, Socket_Address &address) |
This function is used to accept new connections. | |
bool | OpenForListen (const Socket_Address &Inaddess, int backlog_size=1024) |
This function will initialize a listening Socket. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
Base functionality for a TCP rendezvous socket.
Definition at line 11 of file socket_tcp_listen.h.
bool Socket_TCP_Listen::GetIncomingConnection | ( | SOCKET & | newsession, |
Socket_Address & | address | ||
) | [inline] |
This function is used to accept new connections.
Definition at line 65 of file socket_tcp_listen.h.
static void Socket_TCP_Listen::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from Socket_IP.
Definition at line 26 of file socket_tcp_listen.h.
References Socket_IP::init_type().
bool Socket_TCP_Listen::OpenForListen | ( | const Socket_Address & | Inaddess, |
int | backlog_size = 1024 |
||
) | [inline] |
This function will initialize a listening Socket.
Definition at line 44 of file socket_tcp_listen.h.
References Socket_IP::SetReuseAddress().