Fimbulwinter Project  Pre-Alpha
An Ragnarok Online Emulator
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
tcp_connection Class Reference

List of all members.

Public Types

typedef boost::shared_ptr
< tcp_connection
pointer
typedef boost::function< int(pointer)> parse

Public Member Functions

tcp::socket & socket ()
void do_close ()
bool is_eof ()
void set_eof ()
void * get_data ()
void set_data (char *data)
void set_parser (parse p)
void start ()
void send_buffer (size_t len)
int skip (size_t len)
int realloc_writefifo (size_t addition)
int realloc_fifo (unsigned int rfifo_size, unsigned int wfifo_size)
int tag ()

Static Public Member Functions

static pointer create (boost::asio::io_service &io_service)
static pointer get_session_by_tag (int t)
static bool session_exists (int t)

Public Attributes

unsigned char * rdata
unsigned char * wdata
size_t max_rdata
size_t max_wdata
size_t rdata_size
size_t wdata_size
size_t rdata_pos
struct {
   unsigned char   eof: 1
   unsigned char   server: 1
flags

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