public class NetConnection
extends java.lang.Object
This class provides static methods for constructing
NetConnectionServer and NetConnectionClient
objects.
The methods provided are equivalent to the methods defined in
.
NetConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
private static StandardNetConnectionFactory |
factory |
| Constructor and Description |
|---|
NetConnection() |
| Modifier and Type | Method and Description |
|---|---|
static NetSharedAltingConnectionClient |
createAny2Net(NetChannelLocation serverLoc) |
static NetSharedConnectionServer |
createNet2Any() |
static NetAltingConnectionServer |
createNet2One() |
static NetAltingConnectionClient |
createOne2Net(NetChannelLocation serverLoc) |
private static StandardNetConnectionFactory factory
public static NetAltingConnectionServer createNet2One()
NetConnectionFactory.createNet2One()public static NetSharedConnectionServer createNet2Any()
NetConnectionFactory.createNet2Any()public static NetAltingConnectionClient createOne2Net(NetChannelLocation serverLoc)
public static NetSharedAltingConnectionClient createAny2Net(NetChannelLocation serverLoc)