• Set "connected" handler.

    Parameters

    • fd: number

      The socket handle.

    • func: LibertasNetCallback

      Callback function.

    • Optional tag: any

      Optional developer supplied value.

      Optional

    Returns void

    Remarks

    Callback will be triggered when the TCP channel is connected to the peer.

    For tls or HTTPS socket, handshakes still need to be performed, which may fail. When handshake succeeds, "ready" callback will be called.

    See

    Libertas_SetOnNetReady

Generated using TypeDoc