Panda3D
Public Member Functions | Static Public Member Functions
Socket_TCP_Listen Class Reference

Base functionality for a TCP rendezvous socket. More...

#include "socket_tcp_listen.h"

Inheritance diagram for Socket_TCP_Listen:
Socket_IP TypedObject MemoryBase

List of all members.

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.

Detailed Description

Base functionality for a TCP rendezvous socket.

Definition at line 11 of file socket_tcp_listen.h.


Member Function Documentation

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().


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