File: ip_misc.h

package info (click to toggle)
tcputils 0.6.2-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 188 kB
  • ctags: 109
  • sloc: ansic: 1,277; makefile: 100; sh: 46
file content (29 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef IP_MISC_H__ALREADY_INCLUDED__
#define IP_MISC_H__ALREADY_INCLUDED__


extern	int	get_inaddr(struct sockaddr_in* /*addr*/,
			   const char* /*host*/,
			   const char* /*service*/,
			   const char* /*protocol*/);

extern	int	tcp_connect(const struct sockaddr_in* /*remote*/,
			    const struct sockaddr_in* /*local*/);

extern	int	tcp_open(const char* /*remote_host*/,
			 const char* /*remote_port*/,
			 const char* /*local_host*/,
			 const char* /*local_port*/);

extern	int	tcp_listen_2(const struct sockaddr_in* /*local*/);

extern	int	tcp_listen(const char* /*interface*/,
			   const char* /*port*/);

extern	char   *source_route(int /*type*/,
			     char** /*hostlist*/,
			     int /*nhosts*/,
			     int* /*result_len*/);


#endif	/* IP_MISC_H__ALREADY_INCLUDED__ */