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

#ifndef __gnu_java_rmi_server_UnicastConnection__
#define __gnu_java_rmi_server_UnicastConnection__

#pragma interface

#include <java/lang/Object.h>

extern "Java"
{
  namespace java
  {
    namespace net
    {
      class Socket;
    }
  }
  namespace gnu
  {
    namespace java
    {
      namespace rmi
      {
        namespace server
        {
          class UnicastConnection;
          class UnicastConnectionManager;
        }
      }
    }
  }
};

class ::gnu::java::rmi::server::UnicastConnection : public ::java::lang::Object
{
public: // actually package-private
  UnicastConnection (::gnu::java::rmi::server::UnicastConnectionManager *, ::java::net::Socket *);
  virtual void acceptConnection ();
  virtual void makeConnection (jint);
  virtual ::java::io::DataInputStream *getDataInputStream () { return din; }
  virtual ::java::io::DataOutputStream *getDataOutputStream () { return dout; }
  virtual ::java::io::ObjectInputStream *getObjectInputStream ();
  virtual ::java::io::ObjectOutputStream *getObjectOutputStream ();
  virtual void disconnect ();
public:
  virtual void run ();
public: // actually package-private
  ::gnu::java::rmi::server::UnicastConnectionManager *manager;
  ::java::net::Socket *sock;
  ::java::io::DataInputStream *din;
  ::java::io::DataOutputStream *dout;
  ::java::io::ObjectInputStream *oin;
  ::java::io::ObjectOutputStream *oout;
public:

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

#endif /* __gnu_java_rmi_server_UnicastConnection__ */
