YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::ClientSocket Class Reference

#include <ClientSocket.hpp>

Inheritance diagram for yap::ClientSocket:
Collaboration diagram for yap::ClientSocket:

List of all members.

Public Member Functions

 ClientSocket ()
virtual ~ClientSocket ()
bool Connect (const String &ipAddress, UInt16 port)
void Disconnect ()
bool Send (IPacket &packet)
bool Receive (IPacket &packet)
String GetRemoteAddress () const
UInt16 GetRemotePort () const
sf::TcpSocket & GetInnerSocket ()
- Public Member Functions inherited from yap::Socket
virtual ~Socket ()
- Public Member Functions inherited from yap::ISocket
virtual ~ISocket ()

Private Member Functions

 DISALLOW_COPY (ClientSocket)

Private Attributes

sf::TcpSocket socket_

Static Private Attributes

static const bool DEFAULT_BLOCKING_STATE = false
static const Time DEFAULT_CONNECTION_TIMEOUT = Time (3.0f)

Additional Inherited Members

- Protected Member Functions inherited from yap::Socket
 Socket ()

Detailed Description

Definition at line 16 of file ClientSocket.hpp.


Constructor & Destructor Documentation

yap::ClientSocket::ClientSocket ( )

Definition at line 11 of file ClientSocket.cpp.

yap::ClientSocket::~ClientSocket ( )
virtual

Definition at line 18 of file ClientSocket.cpp.


Member Function Documentation

bool yap::ClientSocket::Connect ( const String ipAddress,
UInt16  port 
)

Definition at line 22 of file ClientSocket.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::ClientSocket::DISALLOW_COPY ( ClientSocket  )
private
void yap::ClientSocket::Disconnect ( )

Definition at line 38 of file ClientSocket.cpp.

Here is the caller graph for this function:

sf::TcpSocket & yap::ClientSocket::GetInnerSocket ( )

Definition at line 63 of file ClientSocket.cpp.

Here is the caller graph for this function:

String yap::ClientSocket::GetRemoteAddress ( ) const

Definition at line 53 of file ClientSocket.cpp.

Here is the caller graph for this function:

UInt16 yap::ClientSocket::GetRemotePort ( ) const

Definition at line 58 of file ClientSocket.cpp.

bool yap::ClientSocket::Receive ( IPacket packet)

Definition at line 48 of file ClientSocket.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::ClientSocket::Send ( IPacket packet)

Definition at line 43 of file ClientSocket.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

const bool yap::ClientSocket::DEFAULT_BLOCKING_STATE = false
staticprivate

Definition at line 38 of file ClientSocket.hpp.

const Time yap::ClientSocket::DEFAULT_CONNECTION_TIMEOUT = Time (3.0f)
staticprivate

Definition at line 39 of file ClientSocket.hpp.

sf::TcpSocket yap::ClientSocket::socket_
private

Definition at line 41 of file ClientSocket.hpp.


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