1 | /* |
1 | /* |
2 | vpn_tcp.C -- handle the tcp part of the protocol. |
2 | vpn_tcp.C -- handle the tcp part of the protocol. |
|
|
3 | Copyright (C) 2003 Marc Lehmann <pcg@goof.com> |
3 | |
4 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
27 | |
28 | |
28 | #include <cstring> |
29 | #include <cstring> |
29 | |
30 | |
30 | #include <sys/types.h> |
31 | #include <sys/types.h> |
31 | #include <sys/socket.h> |
32 | #include <sys/socket.h> |
32 | #include <sys/poll.h> |
|
|
33 | #include <sys/wait.h> |
33 | #include <sys/wait.h> |
34 | #include <sys/uio.h> |
34 | #include <sys/uio.h> |
35 | #include <errno.h> |
35 | #include <errno.h> |
36 | #include <time.h> |
36 | #include <time.h> |
37 | #include <unistd.h> |
37 | #include <unistd.h> |
|
|
38 | #include <fcntl.h> |
38 | |
39 | |
39 | #include <map> |
40 | #include <map> |
40 | #include <unistd.h> |
|
|
41 | #include <fcntl.h> |
|
|
42 | #include <sys/poll.h> |
|
|
43 | |
41 | |
44 | #include "netcompat.h" |
42 | #include "netcompat.h" |
45 | |
43 | |
46 | #include "vpn.h" |
44 | #include "vpn.h" |
47 | |
45 | |