![]() |
libzmq
master
ZeroMQ C++ Core Engine (LIBZMQ)
|
#include <socks.hpp>
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 |
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().
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().
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().
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().
|
private |
|
private |