#include <Network.h>
|
| bool | StartConnecting () |
| | Launches connecting on background. More...
|
| |
| void | StopConnecting () |
| |
| void | Disconnect () |
| |
| void | AddPacket (int streamid, int type, int len, const char *content) |
| |
| void | AddLocalStream (RoRnet::StreamRegister *reg, int size) |
| |
| std::vector< NetRecvPacket > | GetIncomingStreamData () |
| |
| int | GetUID () |
| |
| int | GetNetQuality () |
| |
| Ogre::String | GetTerrainName () |
| |
| int | GetUserColor () |
| |
| std::string | GetUsername () |
| |
| RoRnet::UserInfo | GetLocalUserData () |
| |
| std::vector< RoRnet::UserInfo > | GetUserInfos () |
| |
| std::vector< BitMask_t > | GetAllUsersPeerOpts () |
| |
| bool | GetUserInfo (int uid, RoRnet::UserInfo &result) |
| |
| bool | GetUserPeerOpts (int uid, BitMask_t &result) |
| |
| bool | GetDisconnectedUserInfo (int uid, RoRnet::UserInfo &result) |
| |
| bool | GetAnyUserInfo (int uid, RoRnet::UserInfo &result) |
| | Also considers local client. More...
|
| |
| bool | FindUserInfo (std::string const &username, RoRnet::UserInfo &result) |
| |
| Ogre::ColourValue | GetPlayerColor (int color_num) |
| |
| void | AddPeerOptions (PeerOptionsRequest *rq) |
| |
| void | RemovePeerOptions (PeerOptionsRequest *rq) |
| |
| void | BroadcastChatMsg (const char *msg) |
| |
| void | WhisperChatMsg (RoRnet::UserInfo const &user, const char *msg) |
| |
| std::string | UserAuthToStringShort (RoRnet::UserInfo const &user) |
| |
| std::string | UserAuthToStringLong (RoRnet::UserInfo const &user) |
| |
|
| 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 110 of file Network.h.
◆ AddLocalStream()
◆ AddPacket()
| void Network::AddPacket |
( |
int |
streamid, |
|
|
int |
type, |
|
|
int |
len, |
|
|
const char * |
content |
|
) |
| |
◆ AddPeerOptions()
◆ 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 |
|
) |
| |
◆ GetAllUsersPeerOpts()
| std::vector< BitMask_t > Network::GetAllUsersPeerOpts |
( |
| ) |
|
◆ GetAnyUserInfo()
Also considers local client.
Definition at line 760 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()
| std::string Network::GetUsername |
( |
| ) |
|
◆ GetUserPeerOpts()
| bool Network::GetUserPeerOpts |
( |
int |
uid, |
|
|
BitMask_t & |
result |
|
) |
| |
◆ 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 |
◆ RemovePeerOptions()
◆ 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 394 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
| std::string RoR::Network::m_username |
|
private |
◆ m_users
◆ m_users_mutex
| std::mutex RoR::Network::m_users_mutex |
|
private |
◆ m_users_peeropts
| std::vector<BitMask_t> RoR::Network::m_users_peeropts |
|
private |
The documentation for this class was generated from the following files: