tfSntpUserClose

Jump to: navigation, search

Table of Contents >> Application Reference >> Simple Network Time Protocol


#include <trsocket.h>


int tfSntpUserClose (ttSntpHandle sntpHandle);


Function Description

Close an association.

If the association was created in blocking mode, tfSntpUserClose() will signal the task that is running tfSntpUserExecute() and return a TM_EINPROGRESS code to the caller. Function tfSntpUserExecute() sends the polling request.

If the association was created in non-blocking mode, tfSntpUserClose() will call tfSntpUserExecute() to send the polling request.


Parameters


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid handle.
  • TM_ENOBUFS
    Not enough memory.
  • TM_EPERM
    The association is already closed.


Table of Contents >> Application Reference >> Simple Network Time Protocol