This function starts accepting socket connections.

Syntax

int SyncListenSc(
  SOCKET sock
);

Parameters

sock
[in] Socket descriptor

Return value

The following values will be returned.
ValueDescription
SOCK_ERR_NO_ERROR Succeeded
SOCK_ERROR Sock error(Please recreate the socket.)
M2M_ERR_SLEEP_FAIL Initialize with SysWLANInit function.
Other than the above Failed

Remarks

Start accepting socket connections.

Requirements

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

Last updated: 2020/10/14