#include <lid.h>
Public Member Functions | |
OpalLineChannel (OpalLineInterfaceDevice &device, unsigned line, const H323AudioCodec &codec) | |
~OpalLineChannel () | |
PString | GetName () const |
BOOL | Close () |
virtual BOOL | Read (void *buf, PINDEX len) |
virtual BOOL | Write (const void *buf, PINDEX len) |
OpalLineInterfaceDevice & | GetDevice () const |
unsigned | GetLineNumber () const |
Protected Attributes | |
OpalLineInterfaceDevice & | device |
unsigned | lineNumber |
BOOL | reading |
BOOL | useDeblocking |
|
Create a new channel to a line interface device.
|
|
|
|
Close the channel. |
|
Get the device the channel is writing to. |
|
Get the line number on device the channel is writing to. |
|
Get the device name. |
|
Low level read from the channel. This function may block until the requested number of characters were read or the read timeout was reached. The GetLastReadCount() function returns the actual number of bytes read. The GetErrorCode() function should be consulted after Read() returns FALSE to determine what caused the failure.
|
|
Low level write to the channel. This function will block until the requested number of characters are written or the write timeout is reached. The GetLastWriteCount() function returns the actual number of bytes written. The GetErrorCode() function should be consulted after Write() returns FALSE to determine what caused the failure.
|
|
|
|
|
|
|
|
|