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

#include <socks.hpp>

Collaboration diagram for zmq::socks_request_encoder_t:

Public Member Functions

 socks_request_encoder_t ()
 
void encode (const socks_request_t &req)
 
bool has_pending_data () const
 
int output (fd_t fd_)
 
void reset ()
 

Private Attributes

uint8_t buf [4+UINT8_MAX+1+2]
 
size_t bytes_encoded
 
size_t bytes_written
 

Detailed Description

Definition at line 95 of file socks.hpp.

Constructor & Destructor Documentation

zmq::socks_request_encoder_t::socks_request_encoder_t ( )

Definition at line 138 of file socks.cpp.

Member Function Documentation

void zmq::socks_request_encoder_t::encode ( const socks_request_t req)

Definition at line 142 of file socks.cpp.

References buf, bytes_encoded, bytes_written, zmq::socks_request_t::command, zmq::socks_request_t::hostname, zmq::socks_request_t::port, UINT8_MAX, and zmq_assert.

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

Here is the caller graph for this function:

bool zmq::socks_request_encoder_t::has_pending_data ( ) const

Definition at line 204 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_request_encoder_t::output ( fd_t  fd_)

Definition at line 195 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_request_encoder_t::reset ( )

Definition at line 209 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_request_encoder_t::buf[4+UINT8_MAX+1+2]
private

Definition at line 107 of file socks.hpp.

Referenced by encode(), and output().

size_t zmq::socks_request_encoder_t::bytes_encoded
private

Definition at line 105 of file socks.hpp.

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

size_t zmq::socks_request_encoder_t::bytes_written
private

Definition at line 106 of file socks.hpp.

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