• Set closed handler.

    Parameters

    • fd: number

      The socket handle.

    • func: LibertasNetCallback

      Callback function.

    • Optional tag: any

      Optional developer supplied value.

      Optional

    Returns void

    Remarks

    Socket is closed on error, or by calling Libertas_NetClose.

    Note the Libertas socket is reuseable, a closed socket can reconnect until the socket is destroyed by Libertas_NetDestroy.

Generated using TypeDoc