Class SocketProvider
- java.lang.Object
-
- org.rspeer.game.provider.callback.proxy.SocketProvider
-
- Direct Known Subclasses:
ProxySocketProvider
public abstract class SocketProvider extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_TIMEOUT
-
Constructor Summary
Constructors Constructor Description SocketProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Socket
direct()
void
init(String host, int port)
abstract Socket
provide()
-
-
-
Field Detail
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public final void init(String host, int port)
-
provide
public abstract Socket provide() throws IOException
- Throws:
IOException
-
direct
public Socket direct() throws IOException
- Throws:
IOException
-
-