
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_net_PlainDatagramSocketImpl__
#define __gnu_java_net_PlainDatagramSocketImpl__

#pragma interface

#include <java/net/DatagramSocketImpl.h>
extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace net
      {
          class PlainDatagramSocketImpl;
      }
    }
  }
  namespace java
  {
    namespace net
    {
        class DatagramPacket;
        class InetAddress;
        class NetworkInterface;
        class SocketAddress;
    }
  }
}

class gnu::java::net::PlainDatagramSocketImpl : public ::java::net::DatagramSocketImpl
{

public:
  PlainDatagramSocketImpl();
public: // actually protected
  void finalize();
public:
  jint getNativeFD();
public: // actually protected
  void bind(jint, ::java::net::InetAddress *);
  void connect(::java::net::InetAddress *, jint);
  void disconnect();
  void create();
  jint peek(::java::net::InetAddress *);
  jint peekData(::java::net::DatagramPacket *);
  void setTimeToLive(jint);
  jint getTimeToLive();
  void send(::java::net::DatagramPacket *);
  void receive(::java::net::DatagramPacket *);
public:
  void setOption(jint, ::java::lang::Object *);
  ::java::lang::Object * getOption(jint);
private:
  void mcastGrp(::java::net::InetAddress *, ::java::net::NetworkInterface *, jboolean);
public: // actually protected
  void close();
  jbyte getTTL();
  void setTTL(jbyte);
  void join(::java::net::InetAddress *);
  void leave(::java::net::InetAddress *);
  void joinGroup(::java::net::SocketAddress *, ::java::net::NetworkInterface *);
  void leaveGroup(::java::net::SocketAddress *, ::java::net::NetworkInterface *);
public: // actually package-private
  static const jint _Jv_TCP_NODELAY_ = 1;
  static const jint _Jv_SO_BINDADDR_ = 15;
  static const jint _Jv_SO_REUSEADDR_ = 4;
  static const jint _Jv_SO_BROADCAST_ = 32;
  static const jint _Jv_SO_OOBINLINE_ = 4099;
  static const jint _Jv_IP_MULTICAST_IF_ = 16;
  static const jint _Jv_IP_MULTICAST_IF2_ = 31;
  static const jint _Jv_IP_MULTICAST_LOOP_ = 18;
  static const jint _Jv_IP_TOS_ = 3;
  static const jint _Jv_SO_LINGER_ = 128;
  static const jint _Jv_SO_TIMEOUT_ = 4102;
  static const jint _Jv_SO_SNDBUF_ = 4097;
  static const jint _Jv_SO_RCVBUF_ = 4098;
  static const jint _Jv_SO_KEEPALIVE_ = 8;
  jint __attribute__((aligned(__alignof__( ::java::net::DatagramSocketImpl)))) native_fd;
private:
  ::java::lang::Object * RECEIVE_LOCK;
  ::java::lang::Object * SEND_LOCK;
public: // actually package-private
  ::java::net::InetAddress * localAddress;
  jint timeout;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_net_PlainDatagramSocketImpl__
