@Module public abstract class QSocket extends java.lang.Object
Constructor and Description |
---|
QSocket() |
Modifier and Type | Method and Description |
---|---|
abstract int |
acceptInitialRead(byte[] buffer,
int offset,
int length) |
abstract void |
close() |
void |
closeWrite() |
void |
forceShutdown() |
int |
getCipherBits()
Returns the bits in the socket.
|
java.lang.String |
getCipherSuite()
Returns the secure cipher algorithm.
|
java.security.cert.X509Certificate |
getClientCertificate()
Returns the client certificate.
|
java.security.cert.X509Certificate[] |
getClientCertificates()
Returns the client certificate chain.
|
abstract java.net.InetAddress |
getLocalAddress()
Returns the server inet address that accepted the request.
|
java.lang.String |
getLocalHost()
Returns the server inet address that accepted the request.
|
abstract int |
getLocalPort()
Returns the server port that accepted the request.
|
abstract java.net.InetAddress |
getRemoteAddress()
Returns the remote client's inet address.
|
int |
getRemoteAddress(byte[] buffer,
int offset,
int length)
Returns the remote client's inet address.
|
java.lang.String |
getRemoteHost()
Returns the remote client's inet address.
|
byte[] |
getRemoteIP()
Returns the remote client's inet address.
|
abstract int |
getRemotePort()
Returns the remote client's port.
|
java.nio.channels.SelectableChannel |
getSelectableChannel()
Returns any selectable channel.
|
java.net.Socket |
getSocket() |
abstract StreamImpl |
getStream()
Returns a stream impl for the socket encapsulating the
input and output stream.
|
abstract long |
getTotalReadBytes()
Returns the total number of bytes read from the socket connection.
|
abstract long |
getTotalWriteBytes()
Returns the total number of bytes written to the socket connection.
|
abstract boolean |
isClosed()
returns true if it's closed.
|
boolean |
isEof() |
boolean |
isSecure()
Returns true if the connection is secure.
|
void |
setRequestExpireTime(long expireTime) |
void |
setSocket(java.net.Socket socket) |
void |
setSoTimeout(int ms) |
void |
setTcpNoDelay(boolean value) |
java.lang.String |
toString() |
public abstract int acceptInitialRead(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public abstract java.net.InetAddress getLocalAddress()
public java.lang.String getLocalHost()
public abstract int getLocalPort()
public abstract java.net.InetAddress getRemoteAddress()
public java.lang.String getRemoteHost()
public int getRemoteAddress(byte[] buffer, int offset, int length)
public java.net.Socket getSocket()
public void setSocket(java.net.Socket socket)
public byte[] getRemoteIP()
public abstract int getRemotePort()
public void setTcpNoDelay(boolean value) throws java.net.SocketException
java.net.SocketException
public void setSoTimeout(int ms) throws java.net.SocketException
java.net.SocketException
public boolean isSecure()
public java.nio.channels.SelectableChannel getSelectableChannel()
public java.lang.String getCipherSuite()
public int getCipherBits()
public java.security.cert.X509Certificate getClientCertificate() throws java.security.cert.CertificateException
java.security.cert.CertificateException
public java.security.cert.X509Certificate[] getClientCertificates() throws java.security.cert.CertificateException
java.security.cert.CertificateException
public void setRequestExpireTime(long expireTime)
public boolean isEof() throws java.io.IOException
java.io.IOException
public abstract StreamImpl getStream() throws java.io.IOException
java.io.IOException
public abstract long getTotalReadBytes()
public abstract long getTotalWriteBytes()
public abstract boolean isClosed()
public void forceShutdown()
public void closeWrite() throws java.io.IOException
java.io.IOException
public abstract void close() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object