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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_net_Socket__
#define __java_net_Socket__
#pragma interface
#include <java/lang/Object.h>
extern "Java"
{
namespace java
{
namespace net
{
class InetAddress;
class Socket;
class SocketAddress;
class SocketImpl;
class SocketImplFactory;
}
namespace nio
{
namespace channels
{
class SocketChannel;
}
}
}
}
class java::net::Socket : public ::java::lang::Object
{
public:
Socket();
public: // actually protected
Socket(::java::net::SocketImpl *);
public:
Socket(::java::lang::String *, jint);
Socket(::java::net::InetAddress *, jint);
Socket(::java::lang::String *, jint, ::java::net::InetAddress *, jint);
Socket(::java::net::InetAddress *, jint, ::java::net::InetAddress *, jint);
Socket(::java::lang::String *, jint, jboolean);
Socket(::java::net::InetAddress *, jint, jboolean);
private:
Socket(::java::net::InetAddress *, jint, ::java::net::InetAddress *, jint, jboolean);
::java::net::SocketImpl * getImpl();
public:
virtual void bind(::java::net::SocketAddress *);
virtual void connect(::java::net::SocketAddress *);
virtual void connect(::java::net::SocketAddress *, jint);
virtual ::java::net::InetAddress * getInetAddress();
virtual ::java::net::InetAddress * getLocalAddress();
virtual jint getPort();
virtual jint getLocalPort();
virtual ::java::net::SocketAddress * getLocalSocketAddress();
virtual ::java::net::SocketAddress * getRemoteSocketAddress();
virtual ::java::io::InputStream * getInputStream();
virtual ::java::io::OutputStream * getOutputStream();
virtual void setTcpNoDelay(jboolean);
virtual jboolean getTcpNoDelay();
virtual void setSoLinger(jboolean, jint);
virtual jint getSoLinger();
virtual void sendUrgentData(jint);
virtual void setOOBInline(jboolean);
virtual jboolean getOOBInline();
virtual void setSoTimeout(jint);
virtual jint getSoTimeout();
virtual void setSendBufferSize(jint);
virtual jint getSendBufferSize();
virtual void setReceiveBufferSize(jint);
virtual jint getReceiveBufferSize();
virtual void setKeepAlive(jboolean);
virtual jboolean getKeepAlive();
virtual void close();
virtual ::java::lang::String * toString();
static void setSocketImplFactory(::java::net::SocketImplFactory *);
virtual void shutdownInput();
virtual void shutdownOutput();
virtual ::java::nio::channels::SocketChannel * getChannel();
virtual jboolean getReuseAddress();
virtual void setReuseAddress(jboolean);
virtual jint getTrafficClass();
virtual void setTrafficClass(jint);
virtual jboolean isConnected();
virtual jboolean isBound();
virtual jboolean isClosed();
virtual jboolean isInputShutdown();
virtual jboolean isOutputShutdown();
public: // actually package-private
static ::java::net::SocketImplFactory * factory;
::java::net::SocketImpl * __attribute__((aligned(__alignof__( ::java::lang::Object)))) impl;
jboolean implCreated;
jboolean bound;
private:
jboolean inputShutdown;
jboolean outputShutdown;
public:
static ::java::lang::Class class$;
};
#endif // __java_net_Socket__
|