#include <Network.h>
|
void | PushNetMessage (MsgType type, std::string const &message) |
|
void | SetNetQuality (int quality) |
|
bool | SendMessageRaw (char *buffer, int msgsize) |
|
bool | SendNetMessage (int type, unsigned int streamid, int len, char *content) |
|
void | QueueStreamData (RoRnet::Header &header, char *buffer, size_t buffer_len) |
|
int | ReceiveMessage (RoRnet::Header *head, char *content, int bufferlen) |
|
void | CouldNotConnect (std::string const &msg, bool close_socket=true) |
|
bool | ConnectThread () |
|
void | SendThread () |
|
void | RecvThread () |
|
Definition at line 104 of file Network.h.
◆ AddLocalStream()
◆ AddPacket()
void Network::AddPacket |
( |
int |
streamid, |
|
|
int |
type, |
|
|
int |
len, |
|
|
const char * |
content |
|
) |
| |
◆ BroadcastChatMsg()
void Network::BroadcastChatMsg |
( |
const char * |
msg | ) |
|
◆ ConnectThread()
bool Network::ConnectThread |
( |
| ) |
|
|
private |
◆ CouldNotConnect()
void Network::CouldNotConnect |
( |
std::string const & |
msg, |
|
|
bool |
close_socket = true |
|
) |
| |
|
private |
◆ Disconnect()
void Network::Disconnect |
( |
| ) |
|
◆ FindUserInfo()
bool Network::FindUserInfo |
( |
std::string const & |
username, |
|
|
RoRnet::UserInfo & |
result |
|
) |
| |
◆ GetAnyUserInfo()
Also considers local client.
Definition at line 737 of file Network.cpp.
◆ GetDisconnectedUserInfo()
◆ GetIncomingStreamData()
◆ GetLocalUserData()
◆ GetNetQuality()
int Network::GetNetQuality |
( |
| ) |
|
◆ GetPlayerColor()
Ogre::ColourValue Network::GetPlayerColor |
( |
int |
color_num | ) |
|
◆ GetTerrainName()
Ogre::String Network::GetTerrainName |
( |
| ) |
|
◆ GetUID()
◆ GetUserColor()
int Network::GetUserColor |
( |
| ) |
|
◆ GetUserInfo()
◆ GetUserInfos()
◆ GetUsername()
Ogre::UTFString Network::GetUsername |
( |
| ) |
|
◆ PushNetMessage()
void Network::PushNetMessage |
( |
MsgType |
type, |
|
|
std::string const & |
message |
|
) |
| |
|
private |
◆ QueueStreamData()
void Network::QueueStreamData |
( |
RoRnet::Header & |
header, |
|
|
char * |
buffer, |
|
|
size_t |
buffer_len |
|
) |
| |
|
private |
◆ ReceiveMessage()
int Network::ReceiveMessage |
( |
RoRnet::Header * |
head, |
|
|
char * |
content, |
|
|
int |
bufferlen |
|
) |
| |
|
private |
◆ RecvThread()
void Network::RecvThread |
( |
| ) |
|
|
private |
◆ SendMessageRaw()
bool Network::SendMessageRaw |
( |
char * |
buffer, |
|
|
int |
msgsize |
|
) |
| |
|
private |
◆ SendNetMessage()
bool Network::SendNetMessage |
( |
int |
type, |
|
|
unsigned int |
streamid, |
|
|
int |
len, |
|
|
char * |
content |
|
) |
| |
|
private |
◆ SendThread()
void Network::SendThread |
( |
| ) |
|
|
private |
◆ SetNetQuality()
void Network::SetNetQuality |
( |
int |
quality | ) |
|
|
private |
◆ StartConnecting()
bool Network::StartConnecting |
( |
| ) |
|
Launches connecting on background.
Definition at line 388 of file Network.cpp.
◆ StopConnecting()
void Network::StopConnecting |
( |
| ) |
|
◆ UserAuthToStringLong()
◆ UserAuthToStringShort()
◆ WhisperChatMsg()
void Network::WhisperChatMsg |
( |
RoRnet::UserInfo const & |
user, |
|
|
const char * |
msg |
|
) |
| |
◆ m_authlevel
int RoR::Network::m_authlevel |
|
private |
◆ m_connect_thread
std::thread RoR::Network::m_connect_thread |
|
private |
◆ m_disconnected_users
◆ m_net_host
std::string RoR::Network::m_net_host |
|
private |
◆ m_net_port
int RoR::Network::m_net_port |
|
private |
◆ m_net_quality
std::atomic<int> RoR::Network::m_net_quality |
|
private |
◆ m_password
std::string RoR::Network::m_password |
|
private |
◆ m_recv_packet_buffer
◆ m_recv_packetqueue_mutex
std::mutex RoR::Network::m_recv_packetqueue_mutex |
|
private |
◆ m_recv_thread
std::thread RoR::Network::m_recv_thread |
|
private |
◆ m_send_packet_available_cv
std::condition_variable RoR::Network::m_send_packet_available_cv |
|
private |
◆ m_send_packet_buffer
◆ m_send_packetqueue_mutex
std::mutex RoR::Network::m_send_packetqueue_mutex |
|
private |
◆ m_send_thread
std::thread RoR::Network::m_send_thread |
|
private |
◆ m_server_settings
◆ m_shutdown
std::atomic<bool> RoR::Network::m_shutdown |
|
private |
◆ m_socket
SWInetSocket RoR::Network::m_socket |
|
private |
◆ m_status_message
std::string RoR::Network::m_status_message |
|
private |
◆ m_stream_id
int RoR::Network::m_stream_id = 10 |
|
private |
◆ m_token
std::string RoR::Network::m_token |
|
private |
◆ m_uid
◆ m_userdata
◆ m_userdata_mutex
std::mutex RoR::Network::m_userdata_mutex |
|
private |
◆ m_username
Ogre::UTFString RoR::Network::m_username |
|
private |
◆ m_users
◆ m_users_mutex
std::mutex RoR::Network::m_users_mutex |
|
private |
The documentation for this class was generated from the following files: