summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/net/local/LocalSocket.h
blob: c33f540a268130465cd04dc5d010b902a54480c4 (plain)
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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_net_local_LocalSocket__
#define __gnu_java_net_local_LocalSocket__

#pragma interface

#include <java/net/Socket.h>
extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace net
      {
        namespace local
        {
            class LocalSocket;
            class LocalSocketAddress;
            class LocalSocketImpl;
        }
      }
    }
  }
  namespace java
  {
    namespace net
    {
        class InetAddress;
        class SocketAddress;
    }
    namespace nio
    {
      namespace channels
      {
          class SocketChannel;
      }
    }
  }
}

class gnu::java::net::local::LocalSocket : public ::java::net::Socket
{

public:
  LocalSocket();
  LocalSocket(::gnu::java::net::local::LocalSocketAddress *);
public: // actually package-private
  LocalSocket(jboolean);
public:
  void bind(::java::net::SocketAddress *);
  void connect(::java::net::SocketAddress *, jint);
  ::java::net::InetAddress * getInetAddress();
  ::java::net::InetAddress * getLocalAddress();
  jint getPort();
  jint getLocalPort();
  ::java::nio::channels::SocketChannel * getChannel();
  ::java::net::SocketAddress * getLocalSocketAddress();
  ::java::net::SocketAddress * getRemoteSocketAddress();
  ::java::io::InputStream * getInputStream();
  ::java::io::OutputStream * getOutputStream();
  void sendUrgentData(jint);
  void close();
  void shutdownInput();
  void shutdownOutput();
  jboolean isClosed();
  jboolean isBound();
  jboolean isConnected();
  void setTcpNoDelay(jboolean);
  jboolean getTcpNoDelay();
  void setSoLinger(jboolean, jint);
  jint getSoLinger();
  void setOOBInline(jboolean);
  jboolean getOOBInline();
  void setSoTimeout(jint);
  jint getSoTimeout();
  void setSendBufferSize(jint);
  jint getSendBufferSize();
  void setReceiveBufferSize(jint);
  jint getReceiveBufferSize();
  void setKeepAlive(jboolean);
  jboolean getKeepAlive();
  void setTrafficClass(jint);
  jint getTrafficClass();
  void setReuseAddress(jboolean);
  jboolean getReuseAddress();
public: // actually package-private
  ::gnu::java::net::local::LocalSocketImpl * getLocalImpl();
private:
  ::gnu::java::net::local::LocalSocketImpl * __attribute__((aligned(__alignof__( ::java::net::Socket)))) localimpl;
public: // actually package-private
  jboolean localClosed;
  jboolean localConnected;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_net_local_LocalSocket__