Classes | |
class | clan::NetGameClient |
NetGameClient. More... | |
class | clan::NetGameConnection |
NetGameConnection. More... | |
class | clan::NetGameConnectionSite |
NetGameConnectionSite. More... | |
class | clan::NetGameEvent |
NetGameEvent. More... | |
class | clan::NetGameEventValue |
NetGameEventValue. More... | |
class | clan::NetGameServer |
NetGameServer. More... | |
Variables | |
bool clan::NetGameEventValue::value_bool | |
char clan::NetGameEventValue::value_char | |
float clan::NetGameEventValue::value_float | |
int clan::NetGameEventValue::value_int | |
unsigned char clan::NetGameEventValue::value_uchar | |
unsigned int clan::NetGameEventValue::value_uint | |
clan::NetGameClient::NetGameClient | ( | ) |
clan::NetGameConnection::NetGameConnection | ( | NetGameConnectionSite * | site, |
const SocketName & | socket_name | ||
) |
clan::NetGameConnection::NetGameConnection | ( | NetGameConnectionSite * | site, |
const TCPConnection & | connection | ||
) |
Constructs a NetGameConnection.
site | = Net Game Connection Site |
connection | = TCPConnection |
clan::NetGameEvent::NetGameEvent | ( | const std::string & | name, |
std::vector< NetGameEventValue > | arg = {} |
||
) |
Constructs a NetGameEvent.
clan::NetGameEventValue::NetGameEventValue | ( | ) |
|
explicit |
Constructs a NetGameEventValue.
value | = bool |
clan::NetGameEventValue::NetGameEventValue | ( | char | value | ) |
Constructs a NetGameEventValue.
value | = value |
clan::NetGameEventValue::NetGameEventValue | ( | const char * | str | ) |
Constructs a NetGameEventValue.
str | = char |
clan::NetGameEventValue::NetGameEventValue | ( | const DataBuffer & | value | ) |
Constructs a NetGameEventValue.
value | = DataBuffer |
clan::NetGameEventValue::NetGameEventValue | ( | const std::string & | value | ) |
Constructs a NetGameEventValue.
value | = String |
clan::NetGameEventValue::NetGameEventValue | ( | const wchar_t * | str | ) |
Constructs a NetGameEventValue.
str | = wchar_t |
clan::NetGameEventValue::NetGameEventValue | ( | float | value | ) |
Constructs a NetGameEventValue.
value | = value |
clan::NetGameEventValue::NetGameEventValue | ( | int | value | ) |
Constructs a NetGameEventValue.
value | = value |
clan::NetGameEventValue::NetGameEventValue | ( | Type | type | ) |
Constructs a NetGameEventValue.
type | = Type |
clan::NetGameEventValue::NetGameEventValue | ( | unsigned char | value | ) |
Constructs a NetGameEventValue.
value | = value |
clan::NetGameEventValue::NetGameEventValue | ( | unsigned int | value | ) |
Constructs a NetGameEventValue.
value | = value |
clan::NetGameServer::NetGameServer | ( | ) |
clan::NetGameClient::~NetGameClient | ( | ) |
clan::NetGameConnection::~NetGameConnection | ( | ) |
clan::NetGameServer::~NetGameServer | ( | ) |
void clan::NetGameEvent::add_argument | ( | const NetGameEventValue & | value | ) |
Adds an argument into this event.
value | The argument to store inside this event. |
void clan::NetGameEventValue::add_member | ( | const NetGameEventValue & | value | ) |
Add member.
value | = Net Game Event Value |
|
pure virtual |
Add network event.
e | = Net Game Network Event |
void clan::NetGameClient::connect | ( | const std::string & | server, |
const std::string & | port | ||
) |
Connect.
server | = String |
port | = String |
void clan::NetGameClient::disconnect | ( | ) |
Disconnect.
void clan::NetGameConnection::disconnect | ( | ) |
Disconnects a client.
NetGameEventValue clan::NetGameEvent::get_argument | ( | unsigned int | index | ) | const |
Retrieves an argument in this event.
index | Index number of the argument to retrieve. |
unsigned int clan::NetGameEvent::get_argument_count | ( | ) | const |
DataBuffer clan::NetGameEventValue::get_binary | ( | ) | const |
bool clan::NetGameEventValue::get_boolean | ( | ) | const |
int clan::NetGameEventValue::get_character | ( | ) | const |
To character.
void* clan::NetGameConnection::get_data | ( | const std::string & | name | ) | const |
Get data.
name | = String Ref |
int clan::NetGameEventValue::get_integer | ( | ) | const |
const NetGameEventValue& clan::NetGameEventValue::get_member | ( | unsigned int | index | ) | const |
unsigned int clan::NetGameEventValue::get_member_count | ( | ) | const |
|
inline |
Referenced by clan::NetGameEventDispatcher< Params >::dispatch().
float clan::NetGameEventValue::get_number | ( | ) | const |
SocketName clan::NetGameConnection::get_remote_name | ( | ) | const |
Get Remote name.
std::string clan::NetGameEventValue::get_string | ( | ) | const |
Type clan::NetGameEventValue::get_type | ( | ) | const |
Get Type.
unsigned int clan::NetGameEventValue::get_ucharacter | ( | ) | const |
To unsigned character.
Referenced by clan::NetGameEventValue::operator unsigned char().
unsigned int clan::NetGameEventValue::get_uinteger | ( | ) | const |
To unsigned integer.
Referenced by clan::NetGameEventValue::operator unsigned int().
bool clan::NetGameEventValue::is_binary | ( | ) | const |
Is Binary.
bool clan::NetGameEventValue::is_boolean | ( | ) | const |
Is Boolean.
bool clan::NetGameEventValue::is_character | ( | ) | const |
Is Character.
bool clan::NetGameEventValue::is_complex | ( | ) | const |
Is Complex.
bool clan::NetGameEventValue::is_integer | ( | ) | const |
Is Integer.
bool clan::NetGameEventValue::is_null | ( | ) | const |
Is Null.
bool clan::NetGameEventValue::is_number | ( | ) | const |
Is Number.
bool clan::NetGameEventValue::is_string | ( | ) | const |
Is String.
bool clan::NetGameEventValue::is_ucharacter | ( | ) | const |
Is Ucharacter.
bool clan::NetGameEventValue::is_uinteger | ( | ) | const |
Is Uinteger.
|
inline |
References clan::NetGameEventValue::get_boolean().
|
inline |
References clan::NetGameEventValue::get_binary().
|
inline |
References clan::NetGameEventValue::get_number().
|
inline |
References clan::NetGameEventValue::get_integer().
|
inline |
References clan::NetGameEventValue::get_string().
|
inline |
References clan::NetGameEventValue::get_ucharacter().
|
inline |
References clan::NetGameEventValue::get_uinteger().
void clan::NetGameClient::process_events | ( | ) |
Process events.
void clan::NetGameServer::process_events | ( | ) |
Process events.
void clan::NetGameClient::send_event | ( | const NetGameEvent & | game_event | ) |
Send event.
game_event | = Net Game Event |
void clan::NetGameServer::send_event | ( | const NetGameEvent & | game_event | ) |
Send event.
game_event | = Net Game Event |
void clan::NetGameConnection::send_event | ( | const NetGameEvent & | game_event | ) |
Send event.
game_event | = Net Game Event |
void clan::NetGameConnection::set_data | ( | const std::string & | name, |
void * | data | ||
) |
Set data.
name | = String Ref |
data | = void |
void clan::NetGameEventValue::set_member | ( | unsigned int | index, |
const NetGameEventValue & | value | ||
) |
Set member.
index | = value |
value | = Net Game Event Value |
Signal<void(NetGameConnection *)>& clan::NetGameServer::sig_client_connected | ( | ) |
Signal<void(NetGameConnection *, const std::string &)>& clan::NetGameServer::sig_client_disconnected | ( | ) |
Signal<void()>& clan::NetGameClient::sig_connected | ( | ) |
Sig connected.
Signal<void()>& clan::NetGameClient::sig_disconnected | ( | ) |
Sig disconnected.
Signal<void(const NetGameEvent &)>& clan::NetGameClient::sig_event_received | ( | ) |
Signal<void(NetGameConnection *, const NetGameEvent &)>& clan::NetGameServer::sig_event_received | ( | ) |
void clan::NetGameServer::start | ( | const std::string & | address, |
const std::string & | port | ||
) |
Start.
address | = String |
port | = String |
void clan::NetGameServer::start | ( | const std::string & | port | ) |
Start.
port | = String |
void clan::NetGameServer::stop | ( | ) |
Stop.
std::string clan::NetGameEvent::to_string | ( | ) | const |
|
static |
Helper function to obtain a string representation of an EventValue object.
bool clan::NetGameEventValue::value_bool |
bool { ... } ::value_bool |
char { ... } ::value_char |
char clan::NetGameEventValue::value_char |
float clan::NetGameEventValue::value_float |
float { ... } ::value_float |
int { ... } ::value_int |
int clan::NetGameEventValue::value_int |
unsigned { ... } ::value_uchar |
unsigned char clan::NetGameEventValue::value_uchar |
unsigned { ... } ::value_uint |
unsigned int clan::NetGameEventValue::value_uint |