#include <Connection.h>
Public Member Functions | |
Connection (int port) | |
virtual | ~Connection () |
Connection * | waitForConnection () |
int | connectByIp (char *addr) |
int | disconnect () |
int | recieveData (char *buf, int size, int flag) |
int | sendData (char *buf, int size) |
int | getLastError () |
int | getPort () |
Private Member Functions | |
Connection (SOCKET s) | |
Private Attributes | |
SOCKET | tcp |
SOCKET | ls |
int | port |
sockaddr_in | sin |
bool | isConnected |
bool | isOpen |
Definition at line 7 of file Connection.h.
|
Definition at line 23 of file Connection.cpp. References isConnected, isOpen, port, and tcp. Referenced by waitForConnection(). |
|
Definition at line 3 of file Connection.cpp. References isConnected, isOpen, and tcp. |
|
Definition at line 19 of file Connection.h. References tcp. |
|
Definition at line 33 of file Connection.cpp. References isConnected, port, and tcp. Referenced by Gne::joinServer(). |
|
Definition at line 92 of file Connection.cpp. References tcp. Referenced by Gne::aPlayer(), Gne::clientThread(), Gne::disconnect(), Gne::joinServer(), Gne::listen(), and Gne::stopServer(). |
|
Definition at line 123 of file Connection.cpp. |
|
Definition at line 128 of file Connection.cpp. References port. |
|
Definition at line 99 of file Connection.cpp. References isConnected, and tcp. Referenced by Gne::aPlayer(), Gne::clientThread(), Gne::joinServer(), and Gne::listen(). |
|
Definition at line 111 of file Connection.cpp. References isConnected, and tcp. Referenced by Gne::dealExtras(), Gne::joinServer(), Gne::listen(), Gne::sendAttackNT(), Gne::sendChatMsg(), Gne::sendDisconnectToAll(), Gne::sendInfo(), Gne::sendPlayer(), Gne::sendPlayerPosToAll(), Gne::setPlayerActionNT(), Gne::setPlayerDeath(), Gne::setPlayerExtras(), Gne::setPlayerName(), Gne::setPlayerPos(), Gne::setPlayerScore(), Gne::setPlayerState(), and Gne::updatePlayersFromServer(). |
|
Definition at line 53 of file Connection.cpp. References Connection(), isConnected, isOpen, LOG_ERROR, port, sin, and tcp. Referenced by Gne::listen(). Here is the call graph for this function: |
|
Definition at line 13 of file Connection.h. Referenced by connectByIp(), Connection(), recieveData(), sendData(), and waitForConnection(). |
|
Definition at line 14 of file Connection.h. Referenced by Connection(), and waitForConnection(). |
|
Definition at line 10 of file Connection.h. |
|
Definition at line 11 of file Connection.h. Referenced by connectByIp(), Connection(), getPort(), and waitForConnection(). |
|
Definition at line 12 of file Connection.h. Referenced by waitForConnection(). |
|
Definition at line 9 of file Connection.h. Referenced by connectByIp(), Connection(), disconnect(), recieveData(), sendData(), waitForConnection(), and ~Connection(). |