Panda3D
|
A simple place to store and munipulate tcp and port address for communication layer. More...
Public Member Functions | |
__init__ (const SocketAddress inaddr) | |
__init__ (unsigned short int port) | |
Constructor that lets us set a port value. More... | |
clear () | |
Set the internal values to a suitable known value. More... | |
str | getIp () |
Return the IP address portion in dot notation string. More... | |
unsigned long int | GetIPAddressRaw () |
Return a RAW sockaddr_in. More... | |
str | getIpPort () |
Return the ip address/port in dot notation string. More... | |
unsigned short int | getPort () |
Get the port portion as an integer. More... | |
bool | isMcastRange () |
True if the address is in the multicast range. More... | |
bool | operator!= (const SocketAddress in) |
bool | operator< (const SocketAddress in) |
bool | operator== (const SocketAddress in) |
bool | setAnyIP (int port) |
Set to any address and a specified port. More... | |
bool | setBroadcast (int port) |
Set to the broadcast address and a specified port. More... | |
bool | setHost (str hostname) |
bool | setHost (str hostname, int port) |
This function will take a port and string-based TCP address and initialize the address with this information. Returns true on success; on failure, it returns false and the address may be undefined. More... | |
bool | setHost (unsigned int ip4adr, int port) |
bool | setPort (int port) |
Set to a specified port. More... | |
A simple place to store and munipulate tcp and port address for communication layer.
__init__ | ( | const SocketAddress | inaddr | ) |
__init__ | ( | unsigned short int | port | ) |
Constructor that lets us set a port value.
clear | ( | ) |
Set the internal values to a suitable known value.
str getIp | ( | ) |
Return the IP address portion in dot notation string.
unsigned long int GetIPAddressRaw | ( | ) |
Return a RAW sockaddr_in.
str getIpPort | ( | ) |
Return the ip address/port in dot notation string.
unsigned short int getPort | ( | ) |
Get the port portion as an integer.
bool isMcastRange | ( | ) |
True if the address is in the multicast range.
bool operator!= | ( | const SocketAddress | in | ) |
bool operator< | ( | const SocketAddress | in | ) |
bool operator== | ( | const SocketAddress | in | ) |
bool setAnyIP | ( | int | port | ) |
Set to any address and a specified port.
bool setBroadcast | ( | int | port | ) |
Set to the broadcast address and a specified port.
bool setHost | ( | str | hostname | ) |
bool setHost | ( | str | hostname, |
int | port | ||
) |
This function will take a port and string-based TCP address and initialize the address with this information. Returns true on success; on failure, it returns false and the address may be undefined.
bool setHost | ( | unsigned int | ip4adr, |
int | port | ||
) |
bool setPort | ( | int | port | ) |
Set to a specified port.