MISOCKET::ADDR Struct Reference
A generic socket address.
More...
#include <mi32/socket.h>
List of all members.
Detailed Description
A generic socket address.
Note: this is equivilant to struct sockaddr_storage, which can be used to represent all sockaddr types. Defining this ourselves allows us to use it without having to include winsock.h on Windows machines.
XXX THIS IS UGLY AND EVIL
Constructor & Destructor Documentation
Construct for an IP address.
Member Function Documentation
| void MISOCKET::ADDR::GetAddress |
( |
MISTRING & |
mistr, |
|
|
bool |
bDoReverseDNSLookup | |
|
) |
| | const |
The the address in a humanly-readable format.
- Parameters:
-
| mistr | The string to place the address in |
| bDoReverseDNSLookup | If true, FAMILY_NET addresses will use reverse DNS to find the hostname of the address. If false, it will just use the numeric IP address. Ignored for other address families. |
| char* MISOCKET::ADDR::GetBytePtr |
( |
int |
offset |
) |
[protected] |
| const char* MISOCKET::ADDR::GetBytePtr |
( |
int |
offset |
) |
const [protected] |
Get the IP Address (FAMILY_INET only).
| const char* MISOCKET::ADDR::GetLocalName |
( |
|
) |
const |
Get the socket name (FAMILY_LOCAL only).
| int MISOCKET::ADDR::GetPort |
( |
|
) |
const |
Get the port (FAMILY_INET only).
| UINT16 MISOCKET::ADDR::GetUINT16 |
( |
int |
offset |
) |
const [protected] |
| UINT32 MISOCKET::ADDR::GetUINT32 |
( |
int |
offset |
) |
const [protected] |
Construct for an IP address.
| void MISOCKET::ADDR::SetLocalName |
( |
const char * |
name |
) |
|
Set the socket name (FAMILY_LOCAL only).
| void MISOCKET::ADDR::SetUINT16 |
( |
int |
offset, |
|
|
UINT16 |
val | |
|
) |
| | [protected] |
| void MISOCKET::ADDR::SetUINT32 |
( |
int |
offset, |
|
|
UINT32 |
val | |
|
) |
| | [protected] |
Member Data Documentation
The documentation for this struct was generated from the following file: