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

#ifndef __java_net_PlainDatagramSocketImpl__
#define __java_net_PlainDatagramSocketImpl__

#pragma interface

#include <java/net/DatagramSocketImpl.h>

extern "Java"
{
  namespace java
  {
    namespace net
    {
      class PlainDatagramSocketImpl;
      class DatagramPacket;
      class InetAddress;
    }
  }
};

class ::java::net::PlainDatagramSocketImpl : public ::java::net::DatagramSocketImpl
{
public:
  PlainDatagramSocketImpl ();
public:  // actually protected
  virtual void bind (jint, ::java::net::InetAddress *);
  virtual void create ();
  virtual jint peek (::java::net::InetAddress *);
  virtual void setTimeToLive (jint);
  virtual jint getTimeToLive ();
  virtual void send (::java::net::DatagramPacket *);
  virtual void receive (::java::net::DatagramPacket *);
public:
  virtual void setOption (jint, ::java::lang::Object *);
  virtual ::java::lang::Object *getOption (jint);
private:
  void mcastGrp (::java::net::InetAddress *, jboolean);
public:  // actually protected
  virtual void close ();
  virtual jbyte getTTL ();
  virtual void setTTL (jbyte);
  virtual void join (::java::net::InetAddress *);
  virtual void leave (::java::net::InetAddress *);
  virtual void finalize ();
public: // actually package-private
  static const jint _Jv_TCP_NODELAY_ = 1L;
  static const jint _Jv_SO_BINDADDR_ = 15L;
  static const jint _Jv_SO_REUSEADDR_ = 4L;
  static const jint _Jv_IP_MULTICAST_IF_ = 16L;
  static const jint _Jv_SO_LINGER_ = 128L;
  static const jint _Jv_SO_TIMEOUT_ = 4102L;
  static const jint _Jv_SO_SNDBUF_ = 4097L;
  static const jint _Jv_SO_RCVBUF_ = 4098L;
  jint fnum;
  ::java::net::InetAddress *localAddress;
  jint timeout;
public:

  static ::java::lang::Class class$;
};

#endif /* __java_net_PlainDatagramSocketImpl__ */
