Panda3D
|
Public Member Functions | |
bool | Active () |
Ask if the socket is open (allocated) | |
bool | ActiveOpen (Socket_Address const 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 (Socket_Address const 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) | |
AddAddress (Socket_Address inadr) | |
must be called to set value to the server | |
unsigned int | AddressQueueSize () |
BufferedDatagramConnection (int rbufsize, int wbufsize, int write_flush_point) | |
Return type : inline Argument : bool do_blocking_writes Argument : int rbufsize Argument : int wbufsize. | |
ClearAddresses () | |
Close () | |
closes a socket if it is open (allocated) | |
bool | DoConnect () |
int | DontLinger () |
Turn off the linger flag. | |
bool | ErrorIsWouldBlocking (int err) |
bool | Flush () |
flush all wrightes | |
bool | GetMessage (Datagram val) |
read a message | |
Socket_Address | GetPeerName () |
Wrapper on berkly getpeername... | |
int | GetSocket () |
Gets the base socket type. | |
int | GetSocket () |
Get The RAW file id of the socket. | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | IsConnected () |
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. | |
string | RecvData (int max_len) |
Read the data from the connection. | |
Reset () | |
Reset. | |
int | SendData (string str) |
bool | SendMessage (Datagram const msg) |
send the message | |
int | SetBlocking () |
Set the socket to block on subsequent calls to socket functions that address this socket. | |
int | SetLinger (int interval_seconds) |
will control the behavior of SO_LINGER for a TCP socket | |
int | SetLinger () |
will control the behavior of SO_LINGER for a TCP socket | |
int | SetNoDelay () |
Disable Nagle algorithm. | |
int | SetNoDelay (bool flag) |
Disable Nagle algorithm. | |
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. | |
bool | SetReuseAddress () |
Informs a socket to reuse IP address as needed. | |
int | SetSendBufferSize (int insize) |
Just like it sounds. | |
SetSocket (int ins) | |
Assigns an existing socket to this class. | |
bool | ShutdownSend () |
SocketIP () | |
Def Constructor. | |
SocketIP (int in) | |
Assigns an existing socket to this class. | |
SocketTCP (int) | |
SocketTCP () | |
WaitForNetworkReadEvent (float MaxTime) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static int | GetLastError () |
gets the last errcode from a socket operation | |
static int | InitNetworkDriver () |
bool Active | ( | ) | [inherited] |
Ask if the socket is open (allocated)
bool ActiveOpen | ( | Socket_Address const | theaddress, |
bool | setdelay | ||
) | [inherited] |
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 | ( | Socket_Address const | theaddress | ) | [inherited] |
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)
AddAddress | ( | Socket_Address | inadr | ) |
must be called to set value to the server
Return type : inline void Argument : Socket_Address &inadr
unsigned int AddressQueueSize | ( | ) |
Return type : inline Argument : bool do_blocking_writes Argument : int rbufsize Argument : int wbufsize.
ClearAddresses | ( | ) |
Close | ( | ) | [inherited] |
closes a socket if it is open (allocated)
bool DoConnect | ( | ) |
int DontLinger | ( | ) | [inherited] |
Turn off the linger flag.
The socket will quickly release buffered items and free up OS resources. You may lose a stream if you use this flag and do not negotiate the close at the application layer.
bool ErrorIsWouldBlocking | ( | int | err | ) | [inherited] |
bool Flush | ( | ) |
flush all wrightes
Return type : bool Argument : void
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from Socket_TCP.
static int GetLastError | ( | ) | [static, inherited] |
gets the last errcode from a socket operation
bool GetMessage | ( | Datagram | val | ) |
read a message
false means something bad happened..
Return type : inline bool Argument : Datagram &val
Socket_Address GetPeerName | ( | ) | [inherited] |
Wrapper on berkly getpeername...
int GetSocket | ( | ) | [inherited] |
Gets the base socket type.
int GetSocket | ( | ) | [inherited] |
Get The RAW file id of the socket.
TypeHandle getType | ( | ) | [inherited] |
Reimplemented in AnimChannelBase.
int getTypeIndex | ( | ) | [inherited] |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
This is equivalent to get_type().get_index().
static int InitNetworkDriver | ( | ) | [static, inherited] |
bool IsConnected | ( | ) |
bool isExactType | ( | TypeHandle | handle | ) | [inherited] |
Returns true if the current object is the indicated type exactly.
bool isOfType | ( | TypeHandle | handle | ) | [inherited] |
Returns true if the current object is or derives from the indicated type.
string RecvData | ( | int | max_len | ) | [inherited] |
Read the data from the connection.
Return type : int
Reset | ( | ) |
Reset.
Return type : void Argument : void
int SendData | ( | string | str | ) | [inherited] |
bool SendMessage | ( | Datagram const | msg | ) |
send the message
Return type : inline bool Argument : DataGram &msg
int SetBlocking | ( | ) | [inherited] |
Set the socket to block on subsequent calls to socket functions that address this socket.
will control the behavior of SO_LINGER for a TCP socket
int SetLinger | ( | ) | [inherited] |
will control the behavior of SO_LINGER for a TCP socket
int SetNoDelay | ( | ) | [inherited] |
Disable Nagle algorithm.
Don't delay send to coalesce packets
int SetNoDelay | ( | bool | flag | ) | [inherited] |
Disable Nagle algorithm.
Don't delay send to coalesce packets
int SetNonBlocking | ( | ) | [inherited] |
this function will throw a socket into non-blocking mode
bool SetReuseAddress | ( | bool | flag | ) | [inherited] |
Informs a socket to reuse IP address as needed.
bool SetReuseAddress | ( | ) | [inherited] |
Informs a socket to reuse IP address as needed.
Just like it sounds.
Sets a buffered socket recv buffer size. This function does not refuse ranges outside hard-coded OS limits
SetSocket | ( | int | ins | ) | [inherited] |
Assigns an existing socket to this class.
bool ShutdownSend | ( | ) | [inherited] |
SocketIP | ( | int | in | ) | [inherited] |
Assigns an existing socket to this class.
SocketIP | ( | ) | [inherited] |
Def Constructor.
SocketTCP | ( | int | ) | [inherited] |
SocketTCP | ( | ) | [inherited] |
WaitForNetworkReadEvent | ( | float | MaxTime | ) |