|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.net.Peer jtge.engine.net.Client
Implements a client.
Constructor Summary | |
Client(IConsumer consumer,
IInputOutputImpFactory factory)
Create a client. |
Method Summary | |
protected void |
onClose()
Perform custom close. |
void |
open(java.lang.String host,
int port)
Connect the client to a server. |
Methods inherited from class jtge.engine.net.Peer |
close, handle, register, register, register |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jtge.engine.net.IClosable |
close |
Constructor Detail |
public Client(IConsumer consumer, IInputOutputImpFactory factory)
consumer
- the consumer to handle Clientndsfactory
- the input-output implementation factoryMethod Detail |
public final void open(java.lang.String host, int port)
open
in interface IClient
host
- the host nameport
- the host portprotected final void onClose()
onClose
in class Peer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |