Regarding rsslInitChannel

Options
Vyom
Vyom Newcomer
edited June 25 in UPA

I initially set the blocking option for RsslConnectOptions to true. My program was working fine. I was connecting, was able to login receive updates, all was good. I then decided to move to non blocking style of connection. I set up the connection loop according to the example but after the channel goes into RSSL_CH_STATE_INITIALIZING and I call rsslInitChannel the retval is always RSSL_RET_CHAN_INIT_IN_PROGRESS and the flags indicate RSSL_IP_FD_CHANGE. it does like this for some 3-4 times and then retval becomes less than 0. Even after reconnection this process goes on in a loop.

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Vyom

    Thank you for reaching out to us

    There is a ETA consumer example available in the package and on GitHub.

    I suggest testing the connection by running the ETA consumer example.

    If the example can connect to the server, you can check the application logic in the example code.

  • Vyom
    Vyom Newcomer

    Yes I am aware of the example. I actually saw the example and then structured my code. The blocking socket works just fine. For non blocking style I changed the connection code to initialize repeatedly after connection and also added an IO driven even mechanism using POLL function

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Vyom

    Can you run the example to connect to the server?

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.