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

#include <socks.hpp>

Collaboration diagram for zmq::socks_greeting_encoder_t:

Public Member Functions

 socks_greeting_encoder_t ()
 
void encode (const socks_greeting_t &greeting_)
 
bool has_pending_data () const
 
int output (fd_t fd_)
 
void reset ()
 

Private Attributes

uint8_t buf [2+UINT8_MAX]
 
size_t bytes_encoded
 
size_t bytes_written
 

Detailed Description

Definition at line 49 of file socks.hpp.

Constructor & Destructor Documentation

zmq::socks_greeting_encoder_t::socks_greeting_encoder_t ( )

Definition at line 58 of file socks.cpp.

Member Function Documentation

void zmq::socks_greeting_encoder_t::encode ( const socks_greeting_t greeting_)

Definition at line 62 of file socks.cpp.

References buf, bytes_encoded, bytes_written, zmq::socks_greeting_t::methods, and zmq::socks_greeting_t::num_methods.

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

Here is the caller graph for this function:

bool zmq::socks_greeting_encoder_t::has_pending_data ( ) const

Definition at line 84 of file socks.cpp.

References bytes_encoded, and bytes_written.

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

Here is the caller graph for this function:

int zmq::socks_greeting_encoder_t::output ( fd_t  fd_)

Definition at line 75 of file socks.cpp.

References buf, bytes_encoded, bytes_written, and zmq::tcp_write().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void zmq::socks_greeting_encoder_t::reset ( )

Definition at line 89 of file socks.cpp.

References bytes_encoded, and bytes_written.

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

Here is the caller graph for this function:

Member Data Documentation

uint8_t zmq::socks_greeting_encoder_t::buf[2+UINT8_MAX]
private

Definition at line 61 of file socks.hpp.

Referenced by encode(), and output().

size_t zmq::socks_greeting_encoder_t::bytes_encoded
private

Definition at line 59 of file socks.hpp.

Referenced by encode(), has_pending_data(), output(), and reset().

size_t zmq::socks_greeting_encoder_t::bytes_written
private

Definition at line 60 of file socks.hpp.

Referenced by encode(), has_pending_data(), output(), and reset().