File: tcp.h

package info (click to toggle)
input-utils 1.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 380 kB
  • ctags: 1,091
  • sloc: ansic: 1,900; sh: 25; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>

extern int tcp_verbose;

int tcp_connect(struct addrinfo *ai,
		char *addr, char *port,
		char *host, char *serv);

int tcp_listen(struct addrinfo *ai, char *addr, char *port);