Panda3D
|
Base functionality for a combination UDP Reader and Writer. This duplicates code from Socket_UDP_Outgoing, to avoid the problems of multiple inheritance. More...
Public Member Functions | |
__init__ () | |
bool | InitNoAddress () |
Function name : Socket_UDP::InitNoAddress This will set a udp up for targeted sends.. More... | |
bool | InitToAddress (const SocketAddress address) |
Function name : Socket_UDP::InitToAddress Connects the Socket to a Specified address. More... | |
bool | Send (str data) |
Function name : Socket_UDP::Send Send data to connected address. More... | |
bool | SendTo (str data, const SocketAddress address) |
Function name : Socket_UDP::SendTo Send data to specified address. More... | |
bool | SetToBroadCast () |
Function name : Socket_UDP:SetToBroadCast Ask the OS to let us receive BROADCASt packets on this port.. Return type : bool Argument : void. More... | |
![]() | |
__init__ () | |
bool | InitNoAddress () |
Function name : Socket_UDP_Incoming::InitNoAddress Set this socket to work with out a bound external address.. Return type : inline bool Argument : void. More... | |
bool | OpenForInput (const SocketAddress address) |
Function name : Socket_UDP_Incoming::OpenForInput Starts a UDP socket listening on a port. More... | |
bool | OpenForInputMCast (const SocketAddress address) |
Function name : Socket_UDP_Incoming::OpenForInput Starts a UDP socket listening on a port. More... | |
bool | SendTo (str data, int len, const SocketAddress address) |
Function name : SocketUDP_Outgoing::SendTo Send data to specified address. More... | |
bool | SetToBroadCast () |
Function name : Socket_UDP_Incoming::tToBroadCast Flips the OS bits that allow for brodcast packets to com in on this port. More... | |
![]() | |
__init__ () | |
Function name : Socket_IP::Socket_IP Def Constructor. More... | |
__init__ (SOCKET in) | |
Function name : Socket_IP::SetSocket Assigns an existing socket to this class. More... | |
bool | Active () |
Function name : Socket_IP::Active Ask if the socket is open (allocated) More... | |
Close () | |
Function name : Socket_IP::Close closes a socket if it is open (allocated) More... | |
SocketAddress | GetPeerName () |
Function name : Socket_IP::GetPeerName Wrapper on berkly getpeername... More... | |
SOCKET | GetSocket () |
Function name : Socket_IP::GetSocket Gets the base socket type. More... | |
SOCKET | GetSocket () |
Function name : Socket_IP::GetSocket Get The RAW file id of the socket. More... | |
int | SetBlocking () |
Function name : Socket_IP::SetBlocking Set the socket to block on subsequent calls to socket functions that address this socket. More... | |
int | SetNonBlocking () |
Function name : SetNonBlocking this function will throw a socket into non-blocking mode. More... | |
int | SetRecvBufferSize (int size) |
Function name : Socket_IP::SetRecvBufferSize Ok it sets the recv buffer size for both tcp and UDP. More... | |
bool | SetReuseAddress (bool flag) |
Function name : SetReuseAddress Informs a socket to reuse IP address as needed. More... | |
SetSocket (SOCKET ins) | |
Function name : Socket_IP::SetSocket Assigns an existing socket to this class. More... | |
![]() | |
TypeHandle | getType () |
Derived classes should override this function to return get_class_type(). More... | |
int | getTypeIndex () |
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(). More... | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. More... | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. More... | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
static int | GetLastError () |
Function name : Socket_IP::GetLastError gets the last errcode from a socket operation. More... | |
static int | InitNetworkDriver () |
![]() | |
static TypeHandle | getClassType () |
Base functionality for a combination UDP Reader and Writer. This duplicates code from Socket_UDP_Outgoing, to avoid the problems of multiple inheritance.
__init__ | ( | ) |
|
static |
bool InitNoAddress | ( | ) |
Function name : Socket_UDP::InitNoAddress This will set a udp up for targeted sends..
Return type : inline bool Argument : void
bool InitToAddress | ( | const SocketAddress | address | ) |
Function name : Socket_UDP::InitToAddress Connects the Socket to a Specified address.
Return type : inline bool Argument : NetAddress & address
bool Send | ( | str | data | ) |
Function name : Socket_UDP::Send Send data to connected address.
Return type : inline bool Argument : const string &data
bool SendTo | ( | str | data, |
const SocketAddress | address | ||
) |
Function name : Socket_UDP::SendTo Send data to specified address.
Return type : inline bool Argument : const string &data Argument : NetAddress & address
bool SetToBroadCast | ( | ) |
Function name : Socket_UDP:SetToBroadCast Ask the OS to let us receive BROADCASt packets on this port.. Return type : bool Argument : void.