Skip to content

Interrupts doubt #11

@emitdrop

Description

@emitdrop

Hi Duke,

Is there any special consideration that I have to take into account (or prohibition) to use the pair C_NETSEND / C_NETRECV inside an interrupt?

I'm designing a keep alive mechanism, and I need to send every minute or so 2 bytes to the server and wait for its ack.

I have been able to verify that the C_NETSEND works correctly inside the interrupt, but the server message is never available when I ask for it in the status socket (inside the same interrupt).

However, if I do this outside of an interrupt (in the main loop) it works fine: send "ping" and receive "pong".

Probably this whole keep alive loop isn't suitable for an interrupt, but before I rule it out I wanted to see if you had any limitations by design.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions