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

#include <socks.hpp>

Collaboration diagram for zmq::socks_choice_decoder_t:

Public Member Functions

 socks_choice_decoder_t ()
 
socks_choice_t decode ()
 
int input (fd_t fd_)
 
bool message_ready () const
 
void reset ()
 

Private Attributes

unsigned char buf [2]
 
size_t bytes_read
 

Detailed Description

Definition at line 71 of file socks.hpp.

Constructor & Destructor Documentation

zmq::socks_choice_decoder_t::socks_choice_decoder_t ( )

Definition at line 98 of file socks.cpp.

Member Function Documentation

zmq::socks_choice_t zmq::socks_choice_decoder_t::decode ( )

Definition at line 119 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_choice_decoder_t::input ( fd_t  fd_)

Definition at line 102 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_choice_decoder_t::message_ready ( ) const

Definition at line 114 of file socks.cpp.

References bytes_read.

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

Here is the caller graph for this function:

void zmq::socks_choice_decoder_t::reset ( )

Definition at line 125 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

unsigned char zmq::socks_choice_decoder_t::buf[2]
private

Definition at line 81 of file socks.hpp.

Referenced by decode(), and input().

size_t zmq::socks_choice_decoder_t::bytes_read
private

Definition at line 82 of file socks.hpp.

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