Package com.biglybt.core.impl
Class CoreSingleInstanceClient
- java.lang.Object
-
- com.biglybt.core.impl.CoreSingleInstanceClient
-
public class CoreSingleInstanceClient extends java.lang.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...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACCESS_STRING
private static int
CONNECT_TIMEOUT
private static int
READ_TIMEOUT
-
Constructor Summary
Constructors Constructor Description CoreSingleInstanceClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
static boolean
receiveReply(java.net.Socket socket)
boolean
sendArgs(java.lang.String[] args, int max_millis_to_wait)
static boolean
sendReply(java.net.Socket socket)
-
-
-
Field Detail
-
ACCESS_STRING
public static final java.lang.String ACCESS_STRING
- See Also:
- Constant Field Values
-
CONNECT_TIMEOUT
private static final int CONNECT_TIMEOUT
- See Also:
- Constant Field Values
-
READ_TIMEOUT
private static final int READ_TIMEOUT
- See Also:
- Constant Field Values
-
-