1 #include <gnutls/gnutls.h>
6 gnutls_session_t session
;
12 struct addrinfo
*addr_info
;
15 ssize_t
socket_recv (const socket_st
* socket
, void *buffer
, int buffer_size
);
16 ssize_t
socket_send (const socket_st
* socket
, const void *buffer
,
18 void socket_open (socket_st
* hd
, const char *hostname
, const char *service
, int udp
);
19 void socket_connect (const socket_st
* hd
);
20 void socket_bye (socket_st
* socket
);
22 void sockets_init (void);