Panda3D
|
#include <pandadoc.hpp>
Public Member Functions | |
__init__ (int rbufsize, int wbufsize, int write_flush_point) | |
AddAddress (SocketAddress inadr) | |
must be called to set value to the server | |
int | AddressQueueSize () |
ClearAddresses () | |
bool | DoConnect () |
bool | Flush () |
Flush all writes. | |
bool | GetMessage (Datagram val) |
Reads a message. | |
bool | IsConnected () |
Reset () | |
Reset. | |
bool | SendMessage (const Datagram msg) |
WaitForNetworkReadEvent (float MaxTime) | |
![]() | |
__init__ () | |
__init__ (SOCKET) | |
bool | ActiveOpen (const SocketAddress theaddress, bool setdelay) |
This function will try and set the socket up for active open to a specified address and port provided by the input parameter. | |
bool | ActiveOpenNonBlocking (const SocketAddress theaddress) |
This function will try and set the socket up for active open to a specified address and port provided by the input parameter (non-blocking version) | |
int | DontLinger () |
Turn off the linger flag. | |
bool | ErrorIsWouldBlocking (int err) |
str | RecvData (int max_len) |
Read the data from the connection - if error 0 if socket closed for read or length is 0 + bytes read (May be smaller than requested) | |
int | SendData (str str) |
int | SetLinger (int interval_seconds) |
will control the behavior of SO_LINGER for a TCP socket | |
int | SetNoDelay (bool flag) |
Disable Nagle algorithm. | |
int | SetSendBufferSize (int insize) |
Just like it sounds. | |
bool | ShutdownSend () |
![]() | |
__init__ () | |
Def Constructor. | |
__init__ (SOCKET in) | |
Assigns an existing socket to this class. | |
bool | Active () |
Ask if the socket is open (allocated) | |
Close () | |
Closes a socket if it is open (allocated). | |
SocketAddress | GetPeerName () |
Wrapper on berkly getpeername... | |
SOCKET | GetSocket () |
Gets the base socket type. | |
SOCKET | GetSocket () |
Get The RAW file id of the socket. | |
int | SetBlocking () |
Set the socket to block on subsequent calls to socket functions that address this socket. | |
int | SetNonBlocking () |
this function will throw a socket into non-blocking mode | |
int | SetRecvBufferSize (int size) |
Ok it sets the recv buffer size for both tcp and UDP. | |
bool | SetReuseAddress (bool flag) |
Informs a socket to reuse IP address as needed. | |
SetSocket (SOCKET ins) | |
Assigns an existing socket to this class. | |
bool | SetV6Only (bool flag) |
Sets a flag indicating whether this IPv6 socket should operate in dual-stack mode or not. | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
static int | GetLastError () |
Gets the last errcode from a socket operation. | |
static int | InitNetworkDriver () |
![]() | |
static TypeHandle | getClassType () |
Additional Inherited Members | |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. | |
__init__ | ( | int | rbufsize, |
int | wbufsize, | ||
int | write_flush_point ) |
AddAddress | ( | SocketAddress | inadr | ) |
must be called to set value to the server
int AddressQueueSize | ( | ) |
ClearAddresses | ( | ) |
bool DoConnect | ( | ) |
bool Flush | ( | ) |
Flush all writes.
|
static |
bool GetMessage | ( | Datagram | val | ) |
Reads a message.
Returns false on failure.
bool IsConnected | ( | ) |
Reset | ( | ) |
Reset.
bool SendMessage | ( | const Datagram | msg | ) |
WaitForNetworkReadEvent | ( | float | MaxTime | ) |