libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::socks_response_decoder_t Class Reference

#include <socks.hpp>

Collaboration diagram for zmq::socks_response_decoder_t:

Public Member Functions

 socks_response_decoder_t ()
 
socks_response_t decode ()
 
int input (fd_t fd_)
 
bool message_ready () const
 
void reset ()
 

Private Attributes

int8_t buf [4+UINT8_MAX+1+2]
 
size_t bytes_read
 

Detailed Description

Definition at line 119 of file socks.hpp.

Constructor & Destructor Documentation

zmq::socks_response_decoder_t::socks_response_decoder_t ( )

Definition at line 219 of file socks.cpp.

Member Function Documentation

zmq::socks_response_t zmq::socks_response_decoder_t::decode ( )

Definition at line 278 of file socks.cpp.

References buf, message_ready(), and zmq_assert.

Referenced by zmq::socks_connecter_t::in_event().

Here is the call graph for this function:

Here is the caller graph for this function:

int zmq::socks_response_decoder_t::input ( fd_t  fd_)

Definition at line 223 of file socks.cpp.

References buf, bytes_read, zmq::tcp_read(), and zmq_assert.

Referenced by zmq::socks_connecter_t::in_event().

Here is the call graph for this function:

Here is the caller graph for this function:

bool zmq::socks_response_decoder_t::message_ready ( ) const

Definition at line 261 of file socks.cpp.

References buf, bytes_read, and zmq_assert.

Referenced by decode(), and zmq::socks_connecter_t::in_event().

Here is the caller graph for this function:

void zmq::socks_response_decoder_t::reset ( )

Definition at line 284 of file socks.cpp.

References bytes_read.

Referenced by zmq::socks_connecter_t::error().

Here is the caller graph for this function:

Member Data Documentation

int8_t zmq::socks_response_decoder_t::buf[4+UINT8_MAX+1+2]
private

Definition at line 129 of file socks.hpp.

Referenced by decode(), input(), and message_ready().

size_t zmq::socks_response_decoder_t::bytes_read
private

Definition at line 130 of file socks.hpp.

Referenced by input(), message_ready(), and reset().