File: tcp.h

package info (click to toggle)
amtterm 1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 316 kB
  • sloc: ansic: 2,541; perl: 328; makefile: 10
file content (11 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (13)
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);