RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
Public Member Functions
DumpingExchangeConnector Struct Reference
Inheritance diagram for DumpingExchangeConnector:
RTBKIT::HttpExchangeConnector RTBKIT::ExchangeConnector Datacratic::HttpEndpoint Datacratic::ServiceBase Datacratic::PassiveEndpointT< SocketTransport > Datacratic::EventRecorder Datacratic::PassiveEndpoint Datacratic::EndpointBase Datacratic::Epoller Datacratic::AsyncEventSource

List of all members.

Public Member Functions

 DumpingExchangeConnector (const std::string &name, std::shared_ptr< ServiceProxies > proxies)
virtual std::string exchangeName () const
virtual std::shared_ptr
< BidRequest
parseBidRequest (HttpAuctionHandler &connection, const HttpHeader &header, const std::string &payload)
virtual double getTimeAvailableMs (HttpAuctionHandler &connection, const HttpHeader &header, const std::string &payload)
virtual double getRoundTripTimeMs (HttpAuctionHandler &connection, const HttpHeader &header)
virtual HttpResponse getResponse (const HttpAuctionHandler &connection, const HttpHeader &requestHeader, const Auction &auction) const
virtual HttpResponse getDroppedAuctionResponse (const HttpAuctionHandler &connection, const Auction &auction, const std::string &reason) const
virtual HttpResponse getErrorResponse (const HttpAuctionHandler &connection, const Auction &auction, const std::string &errorMessage) const

Detailed Description

Definition at line 18 of file standalone_bidder_ex.cc.


Member Function Documentation

virtual std::string DumpingExchangeConnector::exchangeName ( ) const [inline, virtual]

Return the name of the exchange, as it would be written as an identifier.

Implements RTBKIT::HttpExchangeConnector.

Definition at line 26 of file standalone_bidder_ex.cc.

virtual HttpResponse DumpingExchangeConnector::getDroppedAuctionResponse ( const HttpAuctionHandler connection,
const Auction auction,
const std::string &  reason 
) const [inline, virtual]

Return a stringified JSON of the response for when we drop an auction.

Reimplemented from RTBKIT::HttpExchangeConnector.

Definition at line 63 of file standalone_bidder_ex.cc.

virtual HttpResponse DumpingExchangeConnector::getErrorResponse ( const HttpAuctionHandler connection,
const Auction auction,
const std::string &  errorMessage 
) const [inline, virtual]

Return a stringified JSON of the response for our auction. Default implementation calls getResponse() and stringifies the result.

This version is provided as it may be more efficient in terms of memory allocations.

The first element returned is the HTTP body, the second is the content type.

Reimplemented from RTBKIT::HttpExchangeConnector.

Definition at line 71 of file standalone_bidder_ex.cc.


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