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