class broadcast_target

capturing thread must dump data to TCP sockets - usually to nearests push servers, from where it will be pushed by UDP to clients

Public Methods

broadcast_target( int _push_serv_id, const Sockaddr &control, const Sockaddr &broadcast )
do not connect immediately
~broadcast_target()
bool compare_addr( const Sockaddr &a ) const
bool compare( const broadcast_target &target ) const
int get_push_serv_id() const
void connect()
void send( const char *data, unsigned size, const std::string &text, const Timeval &now )
Send to TCP stream the ready-to-resend by UDP "packet"
std::string describe_itself() const
get the channel description when needed for debug reasons

Private Fields

Sockaddr broadcast_addr
Sockaddr control_addr
SOCKET broadcast_sock
SOCKET control_sock
unsigned sequence
int push_serv_id

Documentation

capturing thread must dump data to TCP sockets - usually to nearests push servers, from where it will be pushed by UDP to clients. That's the reference to push server
Sockaddr broadcast_addr

Sockaddr control_addr

SOCKET broadcast_sock

SOCKET control_sock

unsigned sequence

int push_serv_id

broadcast_target( int _push_serv_id, const Sockaddr &control, const Sockaddr &broadcast )
do not connect immediately

~broadcast_target()

bool compare_addr( const Sockaddr &a ) const

bool compare( const broadcast_target &target ) const

int get_push_serv_id() const

void connect()

void send( const char *data, unsigned size, const std::string &text, const Timeval &now )
Send to TCP stream the ready-to-resend by UDP "packet". Text may be incorporated as well. Defragment to not exceed maxPacketSize. Of course text is attached only to the first packet. raise exception if failed

std::string describe_itself() const
get the channel description when needed for debug reasons


This class has no child classes.

alphabetic index html hierarchy of classes or java



This page was generated with the help of DOC++.