#include <serialrecord.h>
Public Member Functions | |
void | AssignUartNumber (void) |
void | ProcessTCPReadSerialData (void) |
void | ProcessSpecialFrameTCPReadSerialData (void) |
void | ProcessSpecialFrameWriteNetworkData (void) |
void | ProcessSpecialFrameWriteTimeout (void) |
void | MakeTcpConnection (void) |
void | CloseListenPort (void) |
void | MakeUdpConnection (void) |
BOOL | OkToListen (void) |
void | ProcessTimeouts (void) |
void | ProcessAccept (void) |
void | OpenSerialPort (void) |
void | ProcessReadNetworkData (void) |
void | OpenListenPort (void) |
void | ProcessWriteNetworkData (void) |
void | ProcessWriteSerialData (void) |
void | ProcessSerialError (void) |
void | ProcessListenError (void) |
void | ProcessNetworkError (void) |
void | GetCurrentChannelStatus (char *buffer) |
Class Definition (struct is class with all members public)
void SerialRecord::AssignUartNumber | ( | void | ) |
Methods
Assign physical UART number to PortRecord array index member
void SerialRecord::CloseListenPort | ( | void | ) |
Close the listening port
void SerialRecord::GetCurrentChannelStatus | ( | char * | buffer | ) |
" Connected to IP xx.xx.xx.xx " Listening on port xx " UDP mode with learned send-to IP Address : xx.xx.xx.xx " UDP mode send to Address : xx.xx.xx.xx " Idle
void SerialRecord::MakeTcpConnection | ( | void | ) |
Initiate a TCP connection
void SerialRecord::MakeUdpConnection | ( | void | ) |
Initiate a UDP connection
BOOL SerialRecord::OkToListen | ( | void | ) |
Check if conditions are right to establish a listening port
void SerialRecord::OpenListenPort | ( | void | ) |
Open the listening port
void SerialRecord::OpenSerialPort | ( | void | ) |
Open a serial port
void SerialRecord::ProcessAccept | ( | void | ) |
Called when connections are waiting to be accepted
void SerialRecord::ProcessListenError | ( | void | ) |
Process listening errors
void SerialRecord::ProcessNetworkError | ( | void | ) |
Process network errors
void SerialRecord::ProcessReadNetworkData | ( | void | ) |
Called when data is received on the network port side
void SerialRecord::ProcessSerialError | ( | void | ) |
Process serial errors
void SerialRecord::ProcessSpecialFrameTCPReadSerialData | ( | void | ) |
Called to initiate an outgoing TCP connection when data is received on the serial data port side (this version for TCP packet customization logic)
void SerialRecord::ProcessSpecialFrameWriteNetworkData | ( | void | ) |
Called when write space has just opened up on network port (this version for TCP packet customization logic)
void SerialRecord::ProcessSpecialFrameWriteTimeout | ( | void | ) |
Time-out function used with TCP packet customization logic - waits for a given time to accumulate serial characters before flushing them out the network side
void SerialRecord::ProcessTCPReadSerialData | ( | void | ) |
Called to initiate an outgoing TCP connection when data is received on the serial data port side
void SerialRecord::ProcessTimeouts | ( | void | ) |
Test all of the communication time-outs
Periodically check for live connection at a user-specified interval by sending an empty packet to the target device.
Wait at least two seconds for ACK to return after sending keep-alive packet. Target is lost if ACK was not the last packet received.
void SerialRecord::ProcessWriteNetworkData | ( | void | ) |
Called when write space has just opened up on network port
void SerialRecord::ProcessWriteSerialData | ( | void | ) |
Called when write space has just opened up serial port