#include <Client.hpp>
Inheritance diagram for sfClient:
Public Member Functions | |
virtual | ~sfClient () |
Virtual destructor. | |
void | Connect (const sfIPAddress &Server, unsigned short Port) |
Connect the client to the specified server. | |
void | Disconnect () |
Disconnect the client from the server. | |
bool | IsConnected () const |
Tell whether the client is connected or not. | |
void | Send (sfPacket &Packet) |
Send a packet to the server. |
Definition at line 42 of file Client.hpp.
sfClient::~sfClient | ( | ) | [virtual] |
void sfClient::Connect | ( | const sfIPAddress & | Server, | |
unsigned short | Port | |||
) |
Connect the client to the specified server.
Server | : Server IP address | |
Port | : Port to use for connection |
Definition at line 45 of file Client.cpp.
void sfClient::Disconnect | ( | ) |
bool sfClient::IsConnected | ( | ) | const |
Tell whether the client is connected or not.
Definition at line 77 of file Client.cpp.
void sfClient::Send | ( | sfPacket & | Packet | ) |
Send a packet to the server.
Packet | : Packet to send |
Definition at line 121 of file Client.cpp.