summaryrefslogtreecommitdiff
path: root/util.h
blob: c151b9019a99cd8057b75ad87d6accfd45e026cd (plain)
1
2
3
4
5
6
7
#include <sys/socket.h>
#include <netdb.h>

char *stringcopy(const char *s, int len);
char *addr2string(struct sockaddr *addr, socklen_t len);
void printfchars(char *prefixfmt, char *prefix, char *charfmt, char *chars, int len);
int connectport(int type, char *host, char *port);