|
Odamex
Setting the Standard in Multiplayer Doom
|
#include <xbox_main.h>
Static Public Member Functions | |
| static char * | InetNtoa (struct in_addr in) |
| Network Byte Order address to ascii string. | |
| static struct hostent * | GetHostByName (const char *name) |
| Get Host by Name. | |
| static int | InitializeJoystick (void) |
| Initialize the Xbox joystick. | |
| static void | EnableJoystickUpdates (bool enable) |
| Enable or disable Xbox joystick updates. | |
| static void | MountPartitions () |
| Mount Xbox partitions. | |
| static void | UnMountPartitions () |
| Unmount Xbox partitions. | |
| static void | OutputDebugString (const char *str,...) |
| Output a string for debugging. | |
| static int | InitLogFile () |
| Initialize the log file. | |
| static void | CloseLogFile () |
| Close the log file. | |
| static void | InitNet () |
| Initialize the network adapter. | |
| static void | CloseNetwork () |
| Close the network adapter. | |
| static void | EnableDebugConsole () |
| Enable the debug console. | |
Xbox Class.
The Xbox class provides utilities and function overrides that are needed for the Xbox platform.
| void agOdalaunch::Xbox::CloseLogFile | ( | ) | [static] |
Close the log file.
This function closes the Xbox log file.
| void agOdalaunch::Xbox::CloseNetwork | ( | ) | [static] |
Close the network adapter.
Close the Xbox network adapter and release any leased IP address.
| void agOdalaunch::Xbox::EnableDebugConsole | ( | ) | [static] |
Enable the debug console.
This function enables the debug console which causes debug output to be sent to the debug console.
| void agOdalaunch::Xbox::EnableJoystickUpdates | ( | bool | enable | ) | [static] |
| struct hostent * agOdalaunch::Xbox::GetHostByName | ( | const char * | name | ) | [static, read] |
Get Host by Name.
This is a custom implementation of gethostbyname() for Xbox. gethostbyname() returns a hostent structure for the provided hostname or IP address.
| name | A hostname or IP address. |
| char * agOdalaunch::Xbox::InetNtoa | ( | struct in_addr | in | ) | [static] |
Network Byte Order address to ascii string.
This is a custom implementation of inet_ntoa() for Xbox. inet_ntoa() converts an internet address in network byte order to an ascii string.
| in | Network address. |
| int agOdalaunch::Xbox::InitializeJoystick | ( | void | ) | [static] |
| int agOdalaunch::Xbox::InitLogFile | ( | ) | [static] |
Initialize the log file.
This function open the Xbox log file for writing.
| void agOdalaunch::Xbox::InitNet | ( | ) | [static] |
Initialize the network adapter.
Initialize the Xbox network adapter and attempt to obtain an IP address.
| void agOdalaunch::Xbox::MountPartitions | ( | ) | [static] |
| void agOdalaunch::Xbox::OutputDebugString | ( | const char * | str, |
| ... | |||
| ) | [static] |
Output a string for debugging.
Provided a string, with optional standard variable arguments, this function will write the contents to a debug file and, if running in the debugger, print the string to the debug console.
| str | The formatted string. |
| ... | Standard variable arguments. |
| void agOdalaunch::Xbox::UnMountPartitions | ( | ) | [static] |