#ifndef TRANSTUI_NET_H
#define TRANSTUI_NET_H

#include <stddef.h>

/* Opens a TCP connection to host:port with a connect+IO timeout.
 * Returns a connected socket fd, or -1 on failure (err filled with a message). */
int net_connect(const char *host, int port, char *err, size_t errlen);

#endif
