ManaPlus
|
Typedefs | |
typedef ::SDLNet_SocketSet | SocketSet |
typedef ::TCPsocket | Socket |
Functions | |
void | init () |
void | quit () |
void | closeSocket (const TcpNet::Socket socket) |
int | send (const TcpNet::Socket sock, const void *const data, const int len) |
const char * | getError () |
int | resolveHost (IPaddress *const address, const char *const host, const Uint16 port) |
TcpNet::Socket | open (IPaddress *const ip) |
SocketSet | allocSocketSet (const int maxsockets) |
int | addSocket (const TcpNet::SocketSet set, const TcpNet::Socket sock) |
int | socketReady (const TcpNet::Socket sock) |
int | checkSockets (const TcpNet::SocketSet set, const Uint32 timeout) |
int | recv (const TcpNet::Socket sock, void *const data, const int maxlen) |
int | delSocket (const TcpNet::SocketSet set, const TcpNet::Socket sock) |
void | freeSocketSet (const TcpNet::SocketSet set) |
TcpNet::Socket | accept (const TcpNet::Socket sock) |
typedef ::TCPsocket TcpNet::Socket |
Definition at line 38 of file sdltcpnet.h.
typedef ::SDLNet_SocketSet TcpNet::SocketSet |
Definition at line 37 of file sdltcpnet.h.
TcpNet::Socket TcpNet::accept | ( | const TcpNet::Socket | sock | ) |
Definition at line 198 of file sdltcpnet.cpp.
Referenced by IPC::acceptLoop(), EAthena::FamilyHandler::askForChildReply(), EAthena::FriendsHandler::inviteResponse(), EAthena::PartyHandler::inviteResponse(), TmwAthena::PartyHandler::inviteResponse(), EAthena::GuildHandler::requestAllianceResponse(), EAthena::TradeHandler::respond(), and TmwAthena::TradeHandler::respond().
int TcpNet::addSocket | ( | const TcpNet::SocketSet | set, |
const TcpNet::Socket | sock | ||
) |
Definition at line 156 of file sdltcpnet.cpp.
References PRAGMACLANG6GCC.
Referenced by IPC::acceptLoop(), and Ea::Network::receive().
TcpNet::SocketSet TcpNet::allocSocketSet | ( | const int | maxsockets | ) |
Definition at line 151 of file sdltcpnet.cpp.
Referenced by IPC::acceptLoop(), and Ea::Network::receive().
int TcpNet::checkSockets | ( | const TcpNet::SocketSet | set, |
const Uint32 | timeout | ||
) |
Definition at line 175 of file sdltcpnet.cpp.
Referenced by IPC::acceptLoop(), and Ea::Network::receive().
void TcpNet::closeSocket | ( | const TcpNet::Socket | socket | ) |
Definition at line 88 of file sdltcpnet.cpp.
Referenced by IPC::acceptLoop(), Ea::Network::disconnect(), and IPC::~IPC().
int TcpNet::delSocket | ( | const TcpNet::SocketSet | set, |
const TcpNet::Socket | sock | ||
) |
Definition at line 185 of file sdltcpnet.cpp.
References PRAGMACLANG6GCC.
Referenced by Ea::Network::receive().
void TcpNet::freeSocketSet | ( | const TcpNet::SocketSet | set | ) |
Definition at line 193 of file sdltcpnet.cpp.
Referenced by IPC::acceptLoop(), and Ea::Network::receive().
const char * TcpNet::getError | ( | ) |
Definition at line 99 of file sdltcpnet.cpp.
Referenced by IPC::acceptLoop(), Ea::Network::flush(), EAthena::GeneralHandler::flushNetwork(), TmwAthena::GeneralHandler::flushNetwork(), IPC::init(), Ea::Network::realConnect(), and Ea::Network::receive().
void TcpNet::init | ( | ) |
Definition at line 78 of file sdltcpnet.cpp.
Referenced by Ea::Network::Network().
TcpNet::Socket TcpNet::open | ( | IPaddress *const | ip | ) |
Definition at line 110 of file sdltcpnet.cpp.
References Actions::hack(), Logger::log_r(), and logger.
Referenced by IPC::init(), and Ea::Network::realConnect().
void TcpNet::quit | ( | ) |
Definition at line 83 of file sdltcpnet.cpp.
Referenced by Ea::Network::~Network().
int TcpNet::recv | ( | const TcpNet::Socket | sock, |
void *const | data, | ||
const int | maxlen | ||
) |
Definition at line 180 of file sdltcpnet.cpp.
References data.
Referenced by IPC::acceptLoop(), and Ea::Network::receive().
int TcpNet::resolveHost | ( | IPaddress *const | address, |
const char *const | host, | ||
const Uint16 | port | ||
) |
Definition at line 104 of file sdltcpnet.cpp.
Referenced by IPC::init(), and Ea::Network::realConnect().
int TcpNet::send | ( | const TcpNet::Socket | sock, |
const void *const | data, | ||
const int | len | ||
) |
Definition at line 93 of file sdltcpnet.cpp.
References data.
Referenced by IPC::acceptLoop(), and Ea::Network::flush().
int TcpNet::socketReady | ( | const TcpNet::Socket | sock | ) |
Definition at line 164 of file sdltcpnet.cpp.
References PRAGMACLANG5, and PRAGMACLANG6GCC.
Referenced by IPC::acceptLoop().