FileDocCategorySizeDatePackage
NetworkConnectionBase.javaAPI DocJ2ME MIDP 2.01534Thu Nov 07 12:02:20 GMT 2002com.sun.midp.io

NetworkConnectionBase

public 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
handle
Socket object used by native code.
private int
iocb
Private variable the native code uses.
Constructors Summary
protected NetworkConnectionBase(int sizeOfBuffer)
Initializes the connection.

param
sizeOfBuffer size of the internal buffer or 0 for the default size

        super(sizeOfBuffer);
    
Methods Summary
private static native voidinitializeInternal()
Initialize any posible native networking code.

public static voidinitializeNativeNetwork()
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.
         */