sfClient Class Reference

#include <Client.hpp>

List of all members.

Public Member Functions

virtual ~sfClient ()
void Connect (const sfIPAddress &Server, unsigned short Port)
void Disconnect ()
bool IsConnected () const
void Send (sfPacket &Packet)


Detailed Description

sfClient is a high-level base class for wrapping a TCP client that connects to a server

Definition at line 42 of file Client.hpp.


Constructor & Destructor Documentation

sfClient::~sfClient (  )  [virtual]

Virtual destructor

Definition at line 35 of file Client.cpp.

References Disconnect().


Member Function Documentation

void sfClient::Connect ( const sfIPAddress Server,
unsigned short  Port 
)

Connect the client to the specified server

Parameters:
Server : Server IP address
Port : Port to use for connection

Definition at line 45 of file Client.cpp.

References Disconnect().

void sfClient::Disconnect (  ) 

Disconnect the client from the server

Definition at line 64 of file Client.cpp.

Referenced by Connect(), and ~sfClient().

bool sfClient::IsConnected (  )  const

Tell whether the client is connected or not

Returns:
True if the client is currently connected

Definition at line 77 of file Client.cpp.

void sfClient::Send ( sfPacket Packet  ) 

Send a packet to the server

Parameters:
Packet : Packet to send

Definition at line 121 of file Client.cpp.

References sfSocketTCP::Send().


The documentation for this class was generated from the following files:
Generated for SFML by  doxygen 1.5.2