QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rsock.h
Go to the documentation of this file.
1 
14 #include "qev.h"
15 
19 typedef struct qev_rsock qev_rsock_t;
20 
30 qev_rsock_t* qev_rsock_new(const gchar *addr, const guint16 port);
31 
35 void qev_rsock_free(qev_rsock_t *rsock);
36 
48 void qev_rsock_send(qev_rsock_t *rsock, const gchar *data, const gsize len);
49 
64 gsize qev_rsock_recv(qev_rsock_t *rsock, gchar *buff, const gsize len);
gsize qev_rsock_recv(qev_rsock_t *rsock, gchar *buff, const gsize len)
Receive data from the socket.
struct qev_rsock qev_rsock_t
No need to worry, just a flesh wound.
Definition: rsock.h:19
void qev_rsock_send(qev_rsock_t *rsock, const gchar *data, const gsize len)
Send data over the socket.
Provides all the qev_* functions that are needed for creating an event loop.
void qev_rsock_free(qev_rsock_t *rsock)
Destroy the socket.
qev_rsock_t * qev_rsock_new(const gchar *addr, const guint16 port)
Create a new reconnecting socket.