2015-09-09 19:37:00 +02:00
|
|
|
#ifndef _TWINKLSOCKET_H
|
|
|
|
#define _TWINKLSOCKET_H
|
|
|
|
|
|
|
|
#include "message.h"
|
|
|
|
|
2015-09-21 00:39:44 +02:00
|
|
|
extern int twinklsocket_open(const char *host, const char *port);
|
2015-09-09 19:37:00 +02:00
|
|
|
|
2015-09-21 00:39:44 +02:00
|
|
|
extern void twinklsocket_send(int sockfd, const struct twinkl_message *message);
|
2015-09-09 19:37:00 +02:00
|
|
|
|
2015-09-21 00:39:44 +02:00
|
|
|
extern void twinklsocket_close(int sockfd);
|
2015-09-09 19:37:00 +02:00
|
|
|
|
|
|
|
#endif
|