OdinAI

- Main Page
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables
Public Member Functions | List of all members
OdinAI::NetworkManager Class Reference

`#include <NetworkManager.h>`

## Public Member Functions
bool | Connect (const char *ip, const char *port, const AsyncRecvCallback &asyncRecvCallback)
void | Update ()
void | Close ()
void | Send (const void *data, int size)

## Detailed Description

Manages the network traffic.

## Member Function Documentation

void OdinAI::NetworkManager::Close | ( |  | ) |

Closes the connection to server.

bool OdinAI::NetworkManager::Connect | ( | const char * | ip,
|  | const char * | port,
|  | const AsyncRecvCallback & | asyncRecvCallback
| ) |  |

Connects to the server. Our network implementation is async.

Parameters

  asyncRecvCallback | Asynchronous callback for receive.

void OdinAI::NetworkManager::Send | ( | const void * | data,
|  | int | size
| ) |  |

Send message to server.

void OdinAI::NetworkManager::Update | ( |  | ) |

Checks for new packages.

The documentation for this class was generated from the following file:

- E:/Development/Projects/OdinAI/Include/OdinAI/NetworkManager.h