NetworkConnectionBasepublic abstract class NetworkConnectionBase extends BufferedConnectionAdapter Base class for Network Connection protocols.
This class allows one to initialize the network, if necessary,
before any networking code is called. |
Constructors Summary |
---|
protected NetworkConnectionBase(int sizeOfBuffer)Initializes the connection.
initializeInternal();
super(sizeOfBuffer);
|
Methods Summary |
---|
private static native void | initializeInternal()Initialize any possible native networking code.
| public static void | initializeNativeNetwork()This is so not StreamConnection classes can intialize the
network if they are loaded first.
/*
* This method just has to be a reference to
* get this class loaded and cause the
* class initializer to initialize the network.
*/
|
|