com.caucho.vfs
Class QServerSocket

java.lang.Object
  extended by com.caucho.vfs.QServerSocket
Direct Known Subclasses:
JniServerSocketImpl, OpenSSLFactory, QServerSocketWrapper

public abstract class QServerSocket
extends java.lang.Object

Abstract socket to handle both normal sockets and bin/resin sockets.


Constructor Summary
QServerSocket()
           
 
Method Summary
abstract  boolean accept(QSocket socket)
           
abstract  void close()
           
abstract  QSocket createSocket()
           
abstract  java.net.InetAddress getLocalAddress()
           
abstract  int getLocalPort()
           
 java.nio.channels.Selector getSelector()
           
 int getSystemFD()
           
 boolean isClosed()
           
 boolean isJni()
           
 boolean isTcpKeepalive()
           
 boolean isTcpNoDelay()
           
 void listen(int backlog)
          Sets the socket's listen backlog.
abstract  void setConnectionSocketTimeout(int ms)
          Sets the connection read timeout.
 boolean setSaveOnExec()
           
 void setTcpKeepalive(boolean isKeepalive)
           
 void setTcpNoDelay(boolean delay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QServerSocket

public QServerSocket()
Method Detail

setTcpNoDelay

public void setTcpNoDelay(boolean delay)

isTcpNoDelay

public boolean isTcpNoDelay()

setTcpKeepalive

public void setTcpKeepalive(boolean isKeepalive)

isTcpKeepalive

public boolean isTcpKeepalive()

isJni

public boolean isJni()

setSaveOnExec

public boolean setSaveOnExec()

getSystemFD

public int getSystemFD()

listen

public void listen(int backlog)
Sets the socket's listen backlog.


setConnectionSocketTimeout

public abstract void setConnectionSocketTimeout(int ms)
Sets the connection read timeout.


accept

public abstract boolean accept(QSocket socket)
                        throws java.io.IOException
Throws:
java.io.IOException

createSocket

public abstract QSocket createSocket()
                              throws java.io.IOException
Throws:
java.io.IOException

getLocalAddress

public abstract java.net.InetAddress getLocalAddress()

getLocalPort

public abstract int getLocalPort()

getSelector

public java.nio.channels.Selector getSelector()

isClosed

public boolean isClosed()

close

public abstract void close()
                    throws java.io.IOException
Throws:
java.io.IOException