Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <networkcomm.h>
Public Types | |
enum | CommunicationMethod { ClientBroadcast, ServerUnicast } |
Public Member Functions | |
NetworkCommunication () | |
NetworkCommunication (float minfreq, float maxfreq, bool video, bool secured, std::string method) | |
NetworkCommunication (int nb) | |
~NetworkCommunication () | |
int | InitSession (float frequency) |
void | SendSound (SOCKETALT &send_sock, ObjSerial serial) |
void | SendMessage (SOCKETALT &send_sock, ObjSerial serial, std::string message) |
void | RecvSound (const char *sndbuffer, int length, bool encrypted=false) |
void | RecvMessage (std::string message, bool encrypted=false) |
int | DestroySession () |
void | AddToSession (ClientPtr clt) |
void | RemoveFromSession (ClientPtr clt) |
bool | IsActive () |
char * | GetWebcamCapture () |
char * | GetWebcamFromNetwork (int &length) |
void | StartWebcamTransfer () |
void | StopWebcamTransfer () |
char | HasWebcam () |
char | HasPortaudio () |
char | IsSecured () |
void | SwitchSecured () |
void | SwitchWebcam () |
float | MinFreq () |
float | MaxFreq () |
Definition at line 41 of file networkcomm.h.
NetworkCommunication::NetworkCommunication | ( | ) |
Definition at line 168 of file networkcomm.cpp.
NetworkCommunication::NetworkCommunication | ( | float | minfreq, |
float | maxfreq, | ||
bool | video, | ||
bool | secured, | ||
std::string | method | ||
) |
NetworkCommunication::NetworkCommunication | ( | int | nb) |
Definition at line 263 of file networkcomm.cpp.
NetworkCommunication::~NetworkCommunication | ( | ) |
void NetworkCommunication::AddToSession | ( | ClientPtr | clt) |
int NetworkCommunication::DestroySession | ( | ) |
Definition at line 511 of file networkcomm.cpp.
References use_pa.
Referenced by NetClient::stopCommunication().
char * NetworkCommunication::GetWebcamCapture | ( | ) |
Definition at line 571 of file networkcomm.cpp.
Referenced by NetClient::getWebcamCapture().
char * NetworkCommunication::GetWebcamFromNetwork | ( | int & | length) |
Definition at line 580 of file networkcomm.cpp.
References VsnetOSS::memcpy().
Referenced by NetClient::getWebcamFromNetwork().
char NetworkCommunication::HasPortaudio | ( | ) |
Definition at line 253 of file networkcomm.cpp.
Referenced by NetClient::startCommunication().
char NetworkCommunication::HasWebcam | ( | ) |
Definition at line 241 of file networkcomm.cpp.
Referenced by NetClient::hasWebcam(), and NetClient::startCommunication().
Definition at line 466 of file networkcomm.cpp.
References use_pa.
Referenced by NetClient::startCommunication().
|
inline |
Definition at line 127 of file networkcomm.h.
Referenced by NetClient::checkMsg(), NetClient::IsNetcommActive(), and NetClient::sendTextMessage().
|
inline |
Definition at line 139 of file networkcomm.h.
Referenced by NetClient::IsNetcommSecured(), and NetClient::startCommunication().
|
inline |
Definition at line 150 of file networkcomm.h.
Referenced by NetClient::decreaseFrequency(), and NetClient::increaseFrequency().
|
inline |
Definition at line 146 of file networkcomm.h.
Referenced by NetClient::decreaseFrequency(), and NetClient::increaseFrequency().
void NetworkCommunication::RecvMessage | ( | std::string | message, |
bool | encrypted = false |
||
) |
Definition at line 395 of file networkcomm.cpp.
References MAXBUFFER, VsnetOSS::memcpy(), and use_pa.
void NetworkCommunication::RemoveFromSession | ( | ClientPtr | clt) |
void NetworkCommunication::SendMessage | ( | SOCKETALT & | send_sock, |
ObjSerial | serial, | ||
std::string | message | ||
) |
Definition at line 299 of file networkcomm.cpp.
References CMD_SECMESSAGE, CMD_TXTMESSAGE, PSEUDO__LINE__, Packet::send(), SENDRELIABLE, and use_secured.
Referenced by NetClient::sendTextMessage().
Definition at line 346 of file networkcomm.cpp.
References CMD_SECSNDSAMPLE, CMD_SOUNDSAMPLE, MAXBUFFER, PSEUDO__LINE__, Packet::send(), SENDANDFORGET, use_pa, and use_secured.
Referenced by NetClient::checkMsg().
void NetworkCommunication::StartWebcamTransfer | ( | ) |
void NetworkCommunication::StopWebcamTransfer | ( | ) |
Definition at line 600 of file networkcomm.cpp.
Referenced by NetClient::stopWebcamTransfer().
void NetworkCommunication::SwitchSecured | ( | ) |
Definition at line 652 of file networkcomm.cpp.
References use_secured.
Referenced by NetClient::switchSecured().
void NetworkCommunication::SwitchWebcam | ( | ) |
Definition at line 619 of file networkcomm.cpp.
Referenced by NetClient::switchWebcam().