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

#ifndef __gnu_java_rmi_server_UnicastConnectionManager__
#define __gnu_java_rmi_server_UnicastConnectionManager__

#pragma interface

#include <java/lang/Object.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace rmi
      {
        namespace server
        {
          class UnicastConnection;
          class UnicastConnectionManager;
        }
      }
    }
  }
  namespace java
  {
    namespace rmi
    {
      namespace server
      {
        class RMIClientSocketFactory;
        class RMIServerSocketFactory;
      }
    }
    namespace net
    {
      class ServerSocket;
    }
  }
};

class ::gnu::java::rmi::server::UnicastConnectionManager : public ::java::lang::Object
{
private:
  UnicastConnectionManager (::java::lang::String *, jint, ::java::rmi::server::RMIClientSocketFactory *);
  UnicastConnectionManager (jint, ::java::rmi::server::RMIServerSocketFactory *);
public:
  static ::gnu::java::rmi::server::UnicastConnectionManager *getInstance (::java::lang::String *, jint, ::java::rmi::server::RMIClientSocketFactory *);
  static ::gnu::java::rmi::server::UnicastConnectionManager *getInstance (jint, ::java::rmi::server::RMIServerSocketFactory *);
  virtual ::gnu::java::rmi::server::UnicastConnection *getConnection ();
private:
  ::gnu::java::rmi::server::UnicastConnection *getServerConnection ();
  ::gnu::java::rmi::server::UnicastConnection *getClientConnection ();
public:
  virtual void discardConnection (::gnu::java::rmi::server::UnicastConnection *);
  virtual void startServer ();
  virtual void run ();
public: // actually package-private
  virtual void write (::java::io::ObjectOutput *);
  static ::gnu::java::rmi::server::UnicastConnectionManager *read (::java::io::ObjectInput *);
private:
  static ::java::lang::String *localhost;
  static ::java::util::Hashtable *servers;
  ::java::lang::Thread *serverThread;
  ::java::net::ServerSocket *ssock;
public: // actually package-private
  ::java::lang::String *serverName;
  jint serverPort;
private:
  ::java::rmi::server::RMIServerSocketFactory *serverFactory;
  ::java::rmi::server::RMIClientSocketFactory *clientFactory;
public:

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

#endif /* __gnu_java_rmi_server_UnicastConnectionManager__ */
