RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Classes | Public Types | Public Member Functions | Public Attributes
RTBKIT::AgentInfo Struct Reference

Information about a agent. More...

#include <router_types.h>

List of all members.

Classes

struct  PingInfo

Public Types

enum  BidRequestFormat { BRF_JSON_RAW, BRF_JSON_NORM, BRF_BINARY_V1 }

Public Member Functions

const std::string & encodeBidRequest (const BidRequest &br) const
const std::string & encodeBidRequest (const Auction &auction) const
const std::string & getBidRequestEncoding (const Auction &auction) const
void setBidRequestFormat (const std::string &val)
void gotPong (int level, Date sent, Date received, Date finished)
bool sendPing (int level, Date &start)
Json::Value toJson (bool includeConfig=true, bool includeStats=true) const
void gotHeartbeat (Date when=Date::now())
template<typename Fn >
void forEachInFlight (const Fn &fn) const
size_t numBidsInFlight () const
bool expireBidInFlight (const Id &id)
bool trackBidInFlight (const Id &id, Date date=Date::now())

Public Attributes

enum
RTBKIT::AgentInfo::BidRequestFormat 
bidRequestFormat
bool configured
std::shared_ptr< const
AgentConfig
config
std::shared_ptr< AgentStatusstatus
std::shared_ptr< AgentStatsstats
double throttleProbability
std::string address
PingInfo pingInfo [2]

Detailed Description

Information about a agent.

Definition at line 108 of file router_types.h.


Member Enumeration Documentation

Enumerator:
BRF_JSON_RAW 

Send raw exchangeJSON bid requests.

BRF_JSON_NORM 

Send normalized JSON bid requests.

BRF_BINARY_V1 

Send binary bid requests.

Definition at line 118 of file router_types.h.


Member Function Documentation

const std::string & RTBKIT::AgentInfo::encodeBidRequest ( const BidRequest br) const

Encode the given bid request ready to be sent to the given agent in its configured format.

Definition at line 118 of file router_types.cc.

void RTBKIT::AgentInfo::setBidRequestFormat ( const std::string &  val)

Set the bid request format.

Definition at line 139 of file router_types.cc.


Member Data Documentation

Address of the zeromq socket for this agent.

Definition at line 131 of file router_types.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator