gnrc_tcp_eventloop.h File Reference

TCP event loop declarations. More...

Detailed Description

TCP event loop declarations.

Simon Brummer

Definition in file gnrc_tcp_eventloop.h.

#include <stdint.h>
#include "evtimer_msg.h"
+ Include dependency graph for gnrc_tcp_eventloop.h:

Go to the source code of this file.

int _gnrc_tcp_eventloop_init (void)
 Starts GNRC TCP's main processing thread. More...
void _gnrc_tcp_eventloop_sched (evtimer_msg_event_t *event, uint32_t offset, uint16_t type, void *context)
 Schedule event to event loop. More...
void _gnrc_tcp_eventloop_unsched (evtimer_msg_event_t *event)
 Unschedule event to event loop. More...

Function Documentation

◆ _gnrc_tcp_eventloop_init()

int _gnrc_tcp_eventloop_init ( void  )

Starts GNRC TCP's main processing thread.

Return values
PIDof processing thread on success
-EEXISTif processing thread was already started
seethread_create() for more error cases.

◆ _gnrc_tcp_eventloop_sched()

void _gnrc_tcp_eventloop_sched ( evtimer_msg_event_t event,
uint32_t  offset,
uint16_t  type,
void *  context 

Schedule event to event loop.

[in]eventThe event to schedule
[in]offsetOffset in milliseconds when the event should be handled in the event loop
[in]typeType of the message for the event
[in]contextContext of the event.

◆ _gnrc_tcp_eventloop_unsched()

void _gnrc_tcp_eventloop_unsched ( evtimer_msg_event_t event)

Unschedule event to event loop.

Does nothing if event was not scheduled.

[in]eventThe event to unschedule