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. |
Fields Summary |
---|
protected int | handleSocket object used by native code. | private int | iocbPrivate variable the native code uses. |
Constructors Summary |
---|
protected NetworkConnectionBase(int sizeOfBuffer)Initializes the connection.
super(sizeOfBuffer);
|
Methods Summary |
---|
private static native void | initializeInternal()Initialize any posible 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.
*/
|
|