Bayonne
|
A span is a collection of ports under a single control interface or communication channel, such as a T1/E1/PRI/BRI span. More...
#include <bayonne.h>
Public Member Functions | |
BayonneSpan (BayonneDriver *driver, timeslot_t timeslots) | |
Create a span for a specified number of timeslots. | |
BayonneSession * | getTimeslot (timeslot_t id) |
Get the session associated with the nth timeslot of the span. | |
timeslot_t | getFirst (void) |
Get the first server timeslot of this span. | |
timeslot_t | getCount (void) |
Return total number of server timeslots in this span. | |
unsigned | getId (void) |
Get the id associated with this span. | |
BayonneDriver * | getDriver (void) |
Get driver associated with this span. | |
unsigned | getAvail (void) |
Get number of call slots still available. | |
Static Public Member Functions | |
static BayonneSpan * | get (unsigned id) |
Get a span by a global span id. | |
static void | allocate (unsigned total=0) |
Allocate the total number of spans this server will support. | |
static unsigned | getSpans (void) |
Return total spans in use. | |
Public Attributes | |
Traffic | call_attempts |
Traffic | call_complete |
volatile unsigned short | active_calls |
Protected Attributes | |
unsigned | id |
BayonneDriver * | driver |
BayonneSpan * | next |
timeslot_t | timeslot |
timeslot_t | count |
timeslot_t | used |
Static Protected Attributes | |
static BayonneSpan * | first |
static BayonneSpan * | last |
static unsigned | spans |
static BayonneSpan ** | index |
Friends | |
class __EXPORT | BayonneSession |
class __EXPORT | BayonneDriver |
A span is a collection of ports under a single control interface or communication channel, such as a T1/E1/PRI/BRI span.
ost::BayonneSpan::BayonneSpan | ( | BayonneDriver * | driver, |
timeslot_t | timeslots | ||
) |
Create a span for a specified number of timeslots.
driver | associated with span. |
timeslots | this span covers. |
static void ost::BayonneSpan::allocate | ( | unsigned | total = 0 | ) | [static] |
Allocate the total number of spans this server will support.
total | span count. |
static BayonneSpan* ost::BayonneSpan::get | ( | unsigned | id | ) | [static] |
Get a span by a global span id.
id | of span. |
unsigned ost::BayonneSpan::getAvail | ( | void | ) | [inline] |
Get number of call slots still available.
timeslot_t ost::BayonneSpan::getCount | ( | void | ) | [inline] |
Return total number of server timeslots in this span.
BayonneDriver* ost::BayonneSpan::getDriver | ( | void | ) | [inline] |
Get driver associated with this span.
timeslot_t ost::BayonneSpan::getFirst | ( | void | ) | [inline] |
Get the first server timeslot of this span.
unsigned ost::BayonneSpan::getId | ( | void | ) | [inline] |
Get the id associated with this span.
static unsigned ost::BayonneSpan::getSpans | ( | void | ) | [inline, static] |
Return total spans in use.
BayonneSession* ost::BayonneSpan::getTimeslot | ( | timeslot_t | id | ) |
Get the session associated with the nth timeslot of the span.
id | of nth timeslot of span. |
friend class __EXPORT BayonneDriver [friend] |
friend class __EXPORT BayonneSession [friend] |
volatile unsigned short ost::BayonneSpan::active_calls |
timeslot_t ost::BayonneSpan::count [protected] |
BayonneDriver* ost::BayonneSpan::driver [protected] |
BayonneSpan* ost::BayonneSpan::first [static, protected] |
unsigned ost::BayonneSpan::id [protected] |
BayonneSpan** ost::BayonneSpan::index [static, protected] |
BayonneSpan* ost::BayonneSpan::last [static, protected] |
BayonneSpan* ost::BayonneSpan::next [protected] |
unsigned ost::BayonneSpan::spans [static, protected] |
timeslot_t ost::BayonneSpan::timeslot [protected] |
timeslot_t ost::BayonneSpan::used [protected] |