|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.vfs.QServerSocket
com.caucho.vfs.JniServerSocketImpl
public class JniServerSocketImpl
Abstract socket to handle both normal sockets and bin/resin sockets.
| Method Summary | |
|---|---|
boolean |
accept(QSocket socket)
Accepts a new connection from the socket. |
void |
close()
Closes the socket. |
static QServerSocket |
create(java.lang.String host,
int port)
|
QSocket |
createSocket()
Factory method creating an instance socket. |
void |
finalize()
|
long |
getFd()
Returns the file descriptor to OpenSSLFactory. |
static java.lang.String |
getInitMessage()
|
java.net.InetAddress |
getLocalAddress()
|
int |
getLocalPort()
|
int |
getSystemFD()
|
boolean |
isClosed()
|
static boolean |
isEnabled()
|
boolean |
isJni()
Returns true if this is a JNI socket, to distinguish between file-descriptors we have extra control over. |
boolean |
isJniValid()
|
void |
listen(int backlog)
Sets the socket's listen backlog. |
static QServerSocket |
open(int fd,
int port)
|
void |
setConnectionSocketTimeout(int ms)
Sets the connection read timeout. |
boolean |
setSaveOnExec()
|
void |
setTcpKeepalive(boolean isEnable)
Sets the connection tcp-keepalivedelay. |
void |
setTcpNoDelay(boolean isEnable)
Sets the connection tcp-no-delay. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.vfs.QServerSocket |
|---|
getSelector, isTcpKeepalive, isTcpNoDelay |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static boolean isEnabled()
public static java.lang.String getInitMessage()
public long getFd()
public boolean isJni()
isJni in class QServerSocketpublic boolean isJniValid()
public boolean setSaveOnExec()
setSaveOnExec in class QServerSocketpublic int getSystemFD()
getSystemFD in class QServerSocketpublic void listen(int backlog)
listen in class QServerSocket
public static QServerSocket create(java.lang.String host,
int port)
throws java.io.IOException
java.io.IOException
public static QServerSocket open(int fd,
int port)
throws java.io.IOException
java.io.IOExceptionpublic void setConnectionSocketTimeout(int ms)
setConnectionSocketTimeout in class QServerSocketpublic void setTcpNoDelay(boolean isEnable)
setTcpNoDelay in class QServerSocketpublic void setTcpKeepalive(boolean isEnable)
setTcpKeepalive in class QServerSocket
public boolean accept(QSocket socket)
throws java.io.IOException
accept in class QServerSocketsocket - the socket connection structure
java.io.IOException
public QSocket createSocket()
throws java.io.IOException
createSocket in class QServerSocketjava.io.IOExceptionpublic java.net.InetAddress getLocalAddress()
getLocalAddress in class QServerSocketpublic int getLocalPort()
getLocalPort in class QServerSocketpublic boolean isClosed()
isClosed in class QServerSocket
public void close()
throws java.io.IOException
close in class QServerSocketjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||