summaryrefslogtreecommitdiff
path: root/libjava/java/nio/channels/SocketChannel.h
blob: b742cdbdc535f7148ea7d772241724bd01e10b26 (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_nio_channels_SocketChannel__
#define __java_nio_channels_SocketChannel__

#pragma interface

#include <java/nio/channels/spi/AbstractSelectableChannel.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace net
    {
        class Socket;
        class SocketAddress;
    }
    namespace nio
    {
        class ByteBuffer;
      namespace channels
      {
          class SocketChannel;
        namespace spi
        {
            class SelectorProvider;
        }
      }
    }
  }
}

class java::nio::channels::SocketChannel : public ::java::nio::channels::spi::AbstractSelectableChannel
{

public: // actually protected
  SocketChannel(::java::nio::channels::spi::SelectorProvider *);
public:
  static ::java::nio::channels::SocketChannel * open();
  static ::java::nio::channels::SocketChannel * open(::java::net::SocketAddress *);
  virtual jlong read(JArray< ::java::nio::ByteBuffer * > *);
  virtual jlong write(JArray< ::java::nio::ByteBuffer * > *);
  virtual jint validOps();
  virtual jint read(::java::nio::ByteBuffer *) = 0;
  virtual jboolean connect(::java::net::SocketAddress *) = 0;
  virtual jboolean finishConnect() = 0;
  virtual jboolean isConnected() = 0;
  virtual jboolean isConnectionPending() = 0;
  virtual jlong read(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
  virtual ::java::net::Socket * socket() = 0;
  virtual jint write(::java::nio::ByteBuffer *) = 0;
  virtual jlong write(JArray< ::java::nio::ByteBuffer * > *, jint, jint) = 0;
  static ::java::lang::Class class$;
};

#endif // __java_nio_channels_SocketChannel__