Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <vsnet_socket.h>
Classes | |
class | CompareLt |
Public Member Functions | |
SOCKETALT () | |
SOCKETALT (const SOCKETALT &orig) | |
SOCKETALT (VsnetSocket *sock) | |
SOCKETALT (int sock, bool mode, const AddressIP &remote_ip, SocketSet &set) | |
SOCKETALT & | operator= (const SOCKETALT &orig) |
int | get_fd () const |
bool | valid () const |
bool | isTcp () const |
int | queueLen (int pri) |
int | optPayloadSize () const |
bool | isActive () |
int | sendbuf (Packet *packet, const AddressIP *to, int pcktflags) |
bool | set_nonblock () |
bool | set_block () |
int | recvbuf (Packet *p, AddressIP *ipadr) |
void | disconnect (const char *s) |
bool | sameAddress (const SOCKETALT &l) const |
bool | lowerAddress (const SOCKETALT &l) const |
void | addToSet (SocketSet &set) |
void | setSet (SocketSet *set) |
const AddressIP & | getRemoteAddress () const |
bool | setRemoteAddress (const AddressIP &) |
const AddressIP & | getLocalAddress () const |
bool | setLocalAddress (const AddressIP &) |
Friends | |
class | CompareLt |
std::ostream & | operator<< (std::ostream &ostr, const SOCKETALT &s) |
bool | operator== (const SOCKETALT &l, const SOCKETALT &r) |
Definition at line 34 of file vsnet_socket.h.
SOCKETALT::SOCKETALT | ( | ) |
Definition at line 20 of file vsnet_socket.cpp.
SOCKETALT::SOCKETALT | ( | const SOCKETALT & | orig) |
Definition at line 31 of file vsnet_socket.cpp.
SOCKETALT::SOCKETALT | ( | VsnetSocket * | sock) |
Definition at line 36 of file vsnet_socket.cpp.
Definition at line 23 of file vsnet_socket.cpp.
void SOCKETALT::addToSet | ( | SocketSet & | set) |
Definition at line 185 of file vsnet_socket.cpp.
References SocketSet::set().
void SOCKETALT::disconnect | ( | const char * | s) |
Definition at line 158 of file vsnet_socket.cpp.
Referenced by NetClient::init(), and NetClient::logout().
int SOCKETALT::get_fd | ( | ) | const |
Definition at line 47 of file vsnet_socket.cpp.
Referenced by NetUITCP::createSocket(), VsnetDownload::Client::Item::get_fd(), and NetClient::logout().
const AddressIP & SOCKETALT::getLocalAddress | ( | ) | const |
const AddressIP & SOCKETALT::getRemoteAddress | ( | ) | const |
bool SOCKETALT::isActive | ( | ) |
Definition at line 115 of file vsnet_socket.cpp.
Referenced by NetClient::checkMsg(), and AccountServer::start().
bool SOCKETALT::isTcp | ( | ) | const |
Definition at line 58 of file vsnet_socket.cpp.
Referenced by NetClient::synchronizeTime().
Definition at line 173 of file vsnet_socket.cpp.
Referenced by SOCKETALT::CompareLt::operator()().
Definition at line 41 of file vsnet_socket.cpp.
int SOCKETALT::optPayloadSize | ( | ) | const |
Definition at line 68 of file vsnet_socket.cpp.
Definition at line 63 of file vsnet_socket.cpp.
Definition at line 148 of file vsnet_socket.cpp.
Referenced by AccountServer::recvMsg().
Definition at line 163 of file vsnet_socket.cpp.
Definition at line 125 of file vsnet_socket.cpp.
bool SOCKETALT::set_block | ( | ) |
Definition at line 143 of file vsnet_socket.cpp.
Referenced by NetClient::synchronizeTime().
bool SOCKETALT::set_nonblock | ( | ) |
Definition at line 138 of file vsnet_socket.cpp.
Referenced by NetUIUDP::createServerSocket(), NetUITCP::createSocket(), NetUIUDP::createSocket(), and NetClient::synchronizeTime().
Definition at line 95 of file vsnet_socket.cpp.
Referenced by NetUIUDP::createServerSocket(), and NetUIUDP::createSocket().
Definition at line 105 of file vsnet_socket.cpp.
Referenced by NetUIUDP::createSocket(), and NetClient::synchronizeTime().
void SOCKETALT::setSet | ( | SocketSet * | set) |
Definition at line 190 of file vsnet_socket.cpp.
Referenced by NetUIUDP::createSocket(), and NetUIUDP::disconnectSaveUDP().
bool SOCKETALT::valid | ( | ) | const |
Definition at line 52 of file vsnet_socket.cpp.
Referenced by NetClient::connectLoad(), NetUIUDP::disconnectSaveUDP(), NetClient::init(), NetClient::logout(), AccountServer::start(), and NetClient::synchronizeTime().
|
friend |
Required by the download manager achieve a sorting of sockets.
Definition at line 83 of file vsnet_socket.h.
|
friend |
Definition at line 73 of file vsnet_socket.cpp.
Definition at line 80 of file vsnet_socket.cpp.