equal
deleted
inserted
replaced
20 * |
20 * |
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 * or visit www.oracle.com if you need additional information or have any |
22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
|
26 #include <errno.h> |
25 #include <errno.h> |
27 #include <string.h> |
26 |
28 #include <sys/types.h> |
|
29 #include <sys/socket.h> |
|
30 #if defined(__linux__) |
|
31 #include <sys/poll.h> |
|
32 #endif |
|
33 #include <netinet/tcp.h> /* Defines TCP_NODELAY, needed for 2.6 */ |
|
34 #include <netinet/in.h> |
|
35 #ifdef __linux__ |
|
36 #include <netinet/ip.h> |
|
37 #endif |
|
38 #include <netdb.h> |
|
39 #include <stdlib.h> |
|
40 |
|
41 #ifdef __solaris__ |
|
42 #include <fcntl.h> |
|
43 #endif |
|
44 #ifdef __linux__ |
|
45 #include <unistd.h> |
|
46 #include <sys/sysctl.h> |
|
47 #endif |
|
48 |
|
49 #include "jvm.h" |
|
50 #include "jni_util.h" |
|
51 #include "net_util.h" |
27 #include "net_util.h" |
52 |
28 |
53 #include "java_net_SocketOptions.h" |
29 #include "java_net_SocketOptions.h" |
54 #include "java_net_PlainSocketImpl.h" |
30 #include "java_net_PlainSocketImpl.h" |
55 |
31 |