ost::BayonneSpan Class Reference
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>
List of all members.
Detailed Description
A span is a collection of ports under a single control interface or communication channel, such as a T1/E1/PRI/BRI span.
- Author:
- David Sugar <dyfet@gnutelephony.org> Span management object.
Constructor & Destructor Documentation
Create a span for a specified number of timeslots.
- Parameters:
-
| driver | associated with span. |
| timeslots | this span covers. |
Member Function Documentation
static void ost::BayonneSpan::allocate |
( |
unsigned |
total = 0 |
) |
[static] |
Allocate the total number of spans this server will support.
- Parameters:
-
static BayonneSpan* ost::BayonneSpan::get |
( |
unsigned |
id |
) |
[static] |
Get a span by a global span id.
- Parameters:
-
- Returns:
- span object associated with id.
unsigned ost::BayonneSpan::getAvail |
( |
void |
|
) |
[inline] |
Get number of call slots still available.
- Returns:
- count of call slots available.
timeslot_t ost::BayonneSpan::getCount |
( |
void |
|
) |
[inline] |
Return total number of server timeslots in this span.
- Returns:
- server timeslot count.
Get driver associated with this span.
- Returns:
- driver object for span.
timeslot_t ost::BayonneSpan::getFirst |
( |
void |
|
) |
[inline] |
Get the first server timeslot of this span.
- Returns:
- first server timeslot.
unsigned ost::BayonneSpan::getId |
( |
void |
|
) |
[inline] |
Get the id associated with this span.
- Returns:
- global id of this span object.
static unsigned ost::BayonneSpan::getSpans |
( |
void |
|
) |
[inline, static] |
Return total spans in use.
- Returns:
- total spans in use.
Get the session associated with the nth timeslot of the span.
- Parameters:
-
| id | of nth timeslot of span. |
- Returns:
- associated session object.
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: