- added AsconHostport function

- added composite terminator in standard protocol
This commit is contained in:
zolliker
2012-06-19 06:31:06 +00:00
parent 3141f63f20
commit 36d1204da0
3 changed files with 70 additions and 11 deletions

11
ascon.h
View File

@ -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