|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.net.ConnectionFactory
public class ConnectionFactory
Connections factory. Creates the Client/Server connections
| Method Summary | |
|---|---|
IConnection |
createClientConnection(java.lang.String host,
int port,
int id)
Creates new Client (Client-Server) connection |
IConnection |
createServerConnection(java.net.Socket socket,
int id)
Creates new Server coinnection |
static ConnectionFactory |
getInstance()
Returns the factory instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConnectionFactory getInstance()
public IConnection createClientConnection(java.lang.String host,
int port,
int id)
host - server hostport - server portid - connection ID
public IConnection createServerConnection(java.net.Socket socket,
int id)
socket - socket to read/writeid - connection ID
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||