Galena :: xfirelib

This is a static archive of the original page - xfirelib is no longer maintained.
Navigation
Home
Board
Bug Tracker
Downloads

XFireGateway





User

You are currently not logged in.
Login
Register


0 logged in users.
21 active guests.


Project: xfirelib

Home
Board

Socket Class Reference

#include <socket.h>

List of all members.

Public Member Functions

 Socket (std::string host, int port)
virtual ~Socket ()
bool create ()
bool bind (const int port)
bool listen () const
bool accept (Socket &) const
bool connect (const std::string host, const int port)
bool send (char *buf, int length) const
bool send (const std::string) const
int recv (std::string &) const
int recv (void *buf, int maxlen) const
void set_non_blocking (const bool)
bool is_valid () const


Constructor & Destructor Documentation

Socket::Socket std::string  host,
int  port
 

Definition at line 15 of file socket.cpp.

References connect(), and create().

Here is the call graph for this function:

Socket::~Socket  )  [virtual]
 

Definition at line 31 of file socket.cpp.

References is_valid().

Here is the call graph for this function:


Member Function Documentation

bool Socket::accept Socket  )  const
 

Definition at line 106 of file socket.cpp.

References m_sock.

bool Socket::bind const int  port  ) 
 

Definition at line 59 of file socket.cpp.

References is_valid().

Here is the call graph for this function:

bool Socket::connect const std::string  host,
const int  port
 

Definition at line 180 of file socket.cpp.

References is_valid(), and XDEBUG.

Referenced by Socket().

Here is the call graph for this function:

bool Socket::create  ) 
 

Definition at line 37 of file socket.cpp.

References is_valid().

Referenced by Socket().

Here is the call graph for this function:

bool Socket::is_valid  )  const [inline]
 

Definition at line 50 of file socket.h.

Referenced by bind(), connect(), create(), listen(), and ~Socket().

bool Socket::listen  )  const
 

Definition at line 87 of file socket.cpp.

References is_valid(), and MAXCONNECTIONS.

Here is the call graph for this function:

int Socket::recv void *  buf,
int  maxlen
const
 

Definition at line 141 of file socket.cpp.

References recv().

Here is the call graph for this function:

int Socket::recv std::string &   )  const
 

Definition at line 152 of file socket.cpp.

References MAXRECV.

Referenced by recv(), and xfirelib::XFirePacket::recvPacket().

bool Socket::send const std::string   )  const
 

Definition at line 128 of file socket.cpp.

References send().

Here is the call graph for this function:

bool Socket::send char *  buf,
int  length
const
 

Definition at line 117 of file socket.cpp.

Referenced by xfirelib::Client::connect(), and send().

void Socket::set_non_blocking const   bool  ) 
 

Definition at line 208 of file socket.cpp.


The documentation for this class was generated from the following files:
Powered by Galena
This page is powered by Galena. - Get your own free "CMS" (Wiki, Board, Todolist/Buglist-Tracker)
Author of Galena: Herbert Poul - kahless+galena@sphene.net - jabber id: kahless@sphene.net - icq uin: 50647169
Page generated in 17 millisecs