Commit b8261be2 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added function nmxp_sendRequestPending()

git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@1381 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 151978df
......@@ -1154,6 +1154,16 @@ int nmxp_waitReady(int isock);
int nmxp_sendDataRequest(int isock, int32_t key, int32_t start_time, int32_t end_time);
/*! \brief Sends the message "RequestPending" on a socket
*
* \param isock A descriptor referencing the socket.
*
* \retval SOCKET_OK on success
* \retval SOCKET_ERROR on error
*
*/
int nmxp_sendRequestPending(int isock);
/*! \brief Get the list of available channels from a server
*
* \param hostname host name
......
......@@ -467,6 +467,19 @@ int nmxp_sendDataRequest(int isock, int32_t key, int32_t start_time, int32_t end
}
int nmxp_sendRequestPending(int isock) {
int ret;
ret = nmxp_sendMessage(isock, NMXP_MSG_REQUESTPENDING, NULL, 0);
if(ret != NMXP_SOCKET_OK) {
nmxp_log(NMXP_LOG_ERR, NMXP_LOG_D_CONNFLOW, "Send a RequestPending message\n");
}
return ret;
}
NMXP_CHAN_LIST *nmxp_getAvailableChannelList(char * hostname, int portnum, NMXP_DATATYPE datatype, int (*func_cond)(void)) {
int naqssock;
NMXP_CHAN_LIST *channelList = NULL, *channelList_subset = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment