This function disconnects the socket.

Syntax

int SyncCloseSc(
  SOCKET sock
);

Parameters

sock
[in] Socket descriptor

Return value

The following values will be returned.
ValueDescription
SOCK_ERR_NO_ERROR Succeeded
M2M_ERR_SLEEP_FAIL Initialize with SysWLANInit function.
Other than the above Failed

Remarks

Disconnects the socket.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Last updated: 2020/11/26