lib60870-C
2.3.2
C source code library for the IEC 60870-5-101/104 protocols
|
Data Structures | |
struct | sIMasterConnection |
Typedefs | |
typedef struct sIMasterConnection * | IMasterConnection |
Interface to send messages to the master (used by slave) | |
Functions | |
bool | IMasterConnection_isReady (IMasterConnection self) |
bool | IMasterConnection_sendASDU (IMasterConnection self, CS101_ASDU asdu) |
Send an ASDU to the client/master. More... | |
bool | IMasterConnection_sendACT_CON (IMasterConnection self, CS101_ASDU asdu, bool negative) |
Send an ACT_CON ASDU to the client/master. More... | |
bool | IMasterConnection_sendACT_TERM (IMasterConnection self, CS101_ASDU asdu) |
Send an ACT_TERM ASDU to the client/master. More... | |
int | IMasterConnection_getPeerAddress (IMasterConnection self, char *addrBuf, int addrBufSize) |
Get the peer address of the master (only for CS 104) More... | |
void | IMasterConnection_close (IMasterConnection self) |
Close the master connection (only for CS 104) More... | |
CS101_AppLayerParameters | IMasterConnection_getApplicationLayerParameters (IMasterConnection self) |
Get the application layer parameters used by this connection. | |
void IMasterConnection_close | ( | IMasterConnection | self | ) |
Close the master connection (only for CS 104)
Allows the slave to actively close a master connection (e.g. when some exception occurs)
int IMasterConnection_getPeerAddress | ( | IMasterConnection | self, |
char * | addrBuf, | ||
int | addrBufSize | ||
) |
Get the peer address of the master (only for CS 104)
addrBuf | buffer where to store the IP address as string |
addrBufSize | the size of the buffer where to store the IP address |
bool IMasterConnection_sendACT_CON | ( | IMasterConnection | self, |
CS101_ASDU | asdu, | ||
bool | negative | ||
) |
Send an ACT_CON ASDU to the client/master.
ACT_CON is used for a command confirmation (positive or negative)
asdu | the ASDU to send to the client/master |
negative | value of the negative flag |
bool IMasterConnection_sendACT_TERM | ( | IMasterConnection | self, |
CS101_ASDU | asdu | ||
) |
Send an ACT_TERM ASDU to the client/master.
ACT_TERM is used to indicate that the command execution is complete.
asdu | the ASDU to send to the client/master |
bool IMasterConnection_sendASDU | ( | IMasterConnection | self, |
CS101_ASDU | asdu | ||
) |
Send an ASDU to the client/master.
NOTE: ASDU instance has to be released by the caller!
self | the connection object (this is usually received as a parameter of a callback function) |
asdu | the ASDU to send to the client/master |