Merged gcj-eclipse branch to trunk.
[official-gcc.git] / libjava / java / net / Socket.h
blob776d6fc473a4e893ef84dd703c29a45975f869e4
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_net_Socket__
5 #define __java_net_Socket__
7 #pragma interface
9 #include <java/lang/Object.h>
10 extern "Java"
12 namespace java
14 namespace net
16 class InetAddress;
17 class Socket;
18 class SocketAddress;
19 class SocketImpl;
20 class SocketImplFactory;
22 namespace nio
24 namespace channels
26 class SocketChannel;
32 class java::net::Socket : public ::java::lang::Object
35 public:
36 Socket();
37 public: // actually protected
38 Socket(::java::net::SocketImpl *);
39 public:
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);
46 private:
47 Socket(::java::net::InetAddress *, jint, ::java::net::InetAddress *, jint, jboolean);
48 ::java::net::SocketImpl * getImpl();
49 public:
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();
76 virtual void close();
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;
94 jboolean implCreated;
95 jboolean bound;
96 private:
97 jboolean inputShutdown;
98 jboolean outputShutdown;
99 public:
100 static ::java::lang::Class class$;
103 #endif // __java_net_Socket__