reSIProcate/stack  9694
Public Member Functions | Private Attributes
Loadgen::Registrar Class Reference

#include <Registrar.hxx>

Collaboration diagram for Loadgen::Registrar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Registrar (Transceiver &transceiver)
void go ()

Private Attributes

TransceivermTransceiver

Detailed Description

Definition at line 12 of file Registrar.hxx.


Constructor & Destructor Documentation

Registrar::Registrar ( Transceiver transceiver)

Definition at line 18 of file Registrar.cxx.

   : mTransceiver(transceiver)
{}

Member Function Documentation

void Registrar::go ( )

Definition at line 23 of file Registrar.cxx.

References resip::SipMessage::header(), mTransceiver, Loadgen::Transceiver::receive(), and Loadgen::Transceiver::send().

Referenced by main().

{
   while(true)
   {
      SipMessage* reg = mTransceiver.receive(5);
      if(reg)
      {
         auto_ptr<SipMessage> forDel(reg);
         
         auto_ptr<SipMessage> response(Helper::makeResponse(*reg, 200));
         response->header(h_StatusLine).reason() = "OK";
         response->header(h_Contacts) = reg->header(h_Contacts);
         mTransceiver.send(*response);
      }
   }
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 18 of file Registrar.hxx.

Referenced by go().


The documentation for this class was generated from the following files: