SMDISerial Class Reference

[SMDI Index] [SMDI Heirarchy]


SMDI service protocol via serial device. More...

#include <smdi.h>

Inherits: SMDI, Serial

Public Members

Protected Members


Detailed Description

A class to implement SMDI through a serial device connection using the APE serial class.


SMDISerial(char *device, int pri = 0, long speed = 1200)

Connect SMDI service thread to a specified serial device.

Parameters:
serial baud of serial connection (normally 1200bps).
device name of serial port.
pri level of SMDI service thread.

int SendMsgWaiting(char *msg)

Serial port derived method for actually sending SMDI message waiting control messages to the switch.

Parameters:
msg waiting control string.
Returns:
-1 if error.

char *Readline(void)

Serial port derived method for reading SMDI input into the service thread.

Returns:
null if no data is available or null terminated string.

  • Author: David Sugar <dyfet@ostel.com>
  • Documentation generated by dyfet@centauri.sys on Wed Jun 30 22:40:59 EDT 1999
Kdoc