Added "Since" field to new functions.
[gnutls.git] / src / socket.h
blob141bacb8295657628ad6d49f0f705ccec2e11415
1 #include <gnutls/gnutls.h>
3 typedef struct
5 int fd;
6 gnutls_session_t session;
7 int secure;
8 char *hostname;
9 char *ip;
10 char *service;
11 struct addrinfo *ptr;
12 struct addrinfo *addr_info;
13 } socket_st;
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,
17 int buffer_size);
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);