|
Public メソッド |
| ServerConnection (const std::string &host, u_short port) |
void | print (std::ostream &os) const |
void | fill_packet (packets::IncomingPacket *ip) |
void | push_packet (packets::OutgoingPacket *op) |
int | get_op () |
int | data_available () |
void | start_connection () |
ServerConnection & | operator<< (packets::OutgoingPacket *op) |
Static Public メソッド |
static ServerConnection & | get_instance () |
Protected メソッド |
void | fill_packet_now () |
virtual void | event_connect () |
virtual void | event_close () |
virtual void | can_read () |
virtual void | open () |
virtual int | data_available () const |
virtual bool | can_send () const |
virtual void | send (const std::string &str) |
virtual void | receive (std::string &str, int size) |
virtual const std::string & | get_send_buf () const |
virtual const std::string & | get_receive_buf () const |
void | send_now () |
void | def_can_write () |
void | def_can_read () |
virtual void | can_write () |
virtual void | process_event (int code, int err) |
virtual void | close () |
virtual bool | is_connected () |
void | print (std::ostream &os) |
virtual void | can_accept () |
Static Protected メソッド |
static void | set_instance (HINSTANCE instance) |
Protected 変数 |
packets::IncomingPacket * | _current_packet |
std::string | _host |
u_short | _port |
std::string | _send_buf |
std::string | _receive_buf |
bool | _can_send |
int | _buffer_size |
HWND | _wnd |
SOCKET | _socket |