- added AsconHostport function
- added composite terminator in standard protocol
This commit is contained in:
11
ascon.h
11
ascon.h
@ -19,7 +19,7 @@ typedef enum {
|
||||
AsconUnconnected,
|
||||
AsconPending,
|
||||
AsconReady,
|
||||
AsconFailure
|
||||
AsconFailure /* codes after this indicate also failure */
|
||||
} AsconStatus;
|
||||
|
||||
/** \brief make a new asynchronous connection
|
||||
@ -96,8 +96,15 @@ void AsconError(Ascon *a, char *msg, int errorno);
|
||||
|
||||
/**
|
||||
* \brief return the last ascon state. Only used for statistics
|
||||
* \param a The Adcon to query
|
||||
* \param a The Ascon to query
|
||||
* \return the AsconState as an integer.
|
||||
*/
|
||||
int AsconLastState(Ascon *a);
|
||||
|
||||
/**
|
||||
* \brief return host:port
|
||||
* \param a The Ascon to query
|
||||
* \return the host and port
|
||||
*/
|
||||
char *AsconHostport(Ascon *a);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user