sfClient Class Reference

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

#include <Client.hpp>

Inheritance diagram for sfClient:

sfThread List of all members.

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.

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.


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.

void sfClient::Disconnect (  ) 

Disconnect the client from the server.

Definition at line 64 of file Client.cpp.

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.


The documentation for this class was generated from the following files: