#include <SocketDriver.h>
|
enum | AdditionalOptionFlags { None = 0x00,
Passive = 0x01,
NumericHost = 0x02
} |
|
Utility class to help retrieve socket address information
◆ GetAddressInfo()
const addrinfo* GridMate::SocketAddressInfo::GetAddressInfo |
( |
| ) |
const |
|
inline |
If Resolve() is True, then this returns the address information requested to resolve
◆ Resolve()
bool GridMate::SocketAddressInfo::Resolve |
( |
const char * |
address, |
|
|
AZ::u16 |
port, |
|
|
Driver::BSDSocketFamilyType |
familyType, |
|
|
bool |
isDatagram, |
|
|
AdditionalOptionFlags |
flags |
|
) |
| |
Resolves the an address for either the local host machine (when address is nullptr) or a remote address where address points to a valid string
- Parameters
-
address | when nullptr it we will assume "any address". |
port | When left 0, we use implicit bind (assigned by the system); in native Endian |
familyType | family type, for the BSD socket it can be BSD_AF_INET or BSD_AF_INET6 |
isDatagram | When True then the address hint with be SOCK_DGRAM otherwise SOCK_STREAM |
flags | combined AI_* flags to use as a hints |
◆ RetrieveSystemAssignedPort()
AZ::u16 GridMate::SocketAddressInfo::RetrieveSystemAssignedPort |
( |
SocketDriverCommon::SocketType |
socket | ) |
const |
If Resolve() is True and valid socket, return the assigned port after a succesful bind() call
The documentation for this class was generated from the following file:
- Code/Framework/GridMate/GridMate/Carrier/SocketDriver.h