File: tcp.h

package info (click to toggle)
amtterm 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 348 kB
  • ctags: 542
  • sloc: ansic: 2,533; 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);