int out_len;
} net_t;
-/* Networking Functions */
+/* Networking functions */
+const char *get_hostname(void);
+
+/* Connection functions */
void net_init(void);
void net_open(net_t *net, const char *host, int port);
void net_encrypt(net_t *net);
int net_send(net_t *net, const char *buf, int len);
int net_print(net_t *net, const char *fmt, ...);
-int net_poll(net_t *net);
void net_close(net_t *net);