com.aelitis.azureus.core.impl
Class AzureusCoreSingleInstanceClient

java.lang.Object
  extended by com.aelitis.azureus.core.impl.AzureusCoreSingleInstanceClient

public class AzureusCoreSingleInstanceClient
extends Object

Single instance management is a bit of a mess. For some reason the UIs have their own implementations of clients and servers. We also have a more generic plugin-accessible single instance service that can be used by launchable plugins but don't give a generic mechanism for dealing with the basic mechanism used by the UIs (that run on the instance port). I have introduced this class to give a programmatic way of passing arguments using the existing instance port. Perhaps one day the various UI implementations will be rewritten to use this...

Author:
Parg

Field Summary
static String ACCESS_STRING
           
 
Constructor Summary
AzureusCoreSingleInstanceClient()
           
 
Method Summary
static void main(String[] args)
           
static boolean receiveReply(Socket socket)
           
 boolean sendArgs(String[] args, int max_millis_to_wait)
           
static boolean sendReply(Socket socket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_STRING

public static final String ACCESS_STRING
See Also:
Constant Field Values
Constructor Detail

AzureusCoreSingleInstanceClient

public AzureusCoreSingleInstanceClient()
Method Detail

sendArgs

public boolean sendArgs(String[] args,
                        int max_millis_to_wait)

sendReply

public static boolean sendReply(Socket socket)

receiveReply

public static boolean receiveReply(Socket socket)

main

public static void main(String[] args)