FileDocCategorySizeDatePackage
PlainServerSocketImpl.javaAPI DocAndroid 1.5 API2025Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.net

PlainServerSocketImpl

public class PlainServerSocketImpl extends org.apache.harmony.luni.net.PlainSocketImpl
This class was added so we can create sockets with options that are needed for server sockets. It just overrides create so that we call new natives which only set the options required for server sockets. In order to preserve behaviour of older versions the create PlainSocketImpl was left as is and this new class was added. For newer versions an instance of this class is used, for earlier versions the original PlainSocketImpl is used.

Fields Summary
Constructors Summary
public PlainServerSocketImpl()

        super();
    
public PlainServerSocketImpl(FileDescriptor fd)

        super();
        this.fd = fd;
    
Methods Summary
protected voidcreate(boolean isStreaming)

        streaming = isStreaming;
        if (isStreaming) {
            netImpl.createServerStreamSocket(fd, NetUtil.preferIPv4Stack());
        } else {
            netImpl.createDatagramSocket(fd, NetUtil.preferIPv4Stack());
        }