org.activeio.net
Interface SocketMetadata

All Known Implementing Classes:
NIOAsyncChannel, NIOBaseChannel, NIOSyncChannel, SocketStreamChannel, SocketSyncChannel

public interface SocketMetadata


Method Summary
 InetAddress getInetAddress()
           
 boolean getKeepAlive()
           
 InetAddress getLocalAddress()
           
 int getLocalPort()
           
 SocketAddress getLocalSocketAddress()
           
 boolean getOOBInline()
           
 int getPort()
           
 int getReceiveBufferSize()
           
 SocketAddress getRemoteSocketAddress()
           
 boolean getReuseAddress()
           
 int getSendBufferSize()
           
 int getSoLinger()
           
 int getSoTimeout()
           
 boolean getTcpNoDelay()
           
 int getTrafficClass()
           
 boolean isBound()
           
 boolean isClosed()
           
 boolean isConnected()
           
 void setKeepAlive(boolean on)
           
 void setOOBInline(boolean on)
           
 void setReceiveBufferSize(int size)
           
 void setReuseAddress(boolean on)
           
 void setSendBufferSize(int size)
           
 void setSoLinger(boolean on, int linger)
           
 void setTcpNoDelay(boolean on)
           
 void setTrafficClass(int tc)
           
 

Method Detail

getInetAddress

InetAddress getInetAddress()

getKeepAlive

boolean getKeepAlive()
                     throws SocketException
Throws:
SocketException

getLocalAddress

InetAddress getLocalAddress()

getLocalPort

int getLocalPort()

getLocalSocketAddress

SocketAddress getLocalSocketAddress()

getOOBInline

boolean getOOBInline()
                     throws SocketException
Throws:
SocketException

getPort

int getPort()

getReceiveBufferSize

int getReceiveBufferSize()
                         throws SocketException
Throws:
SocketException

getRemoteSocketAddress

SocketAddress getRemoteSocketAddress()

getReuseAddress

boolean getReuseAddress()
                        throws SocketException
Throws:
SocketException

getSendBufferSize

int getSendBufferSize()
                      throws SocketException
Throws:
SocketException

getSoLinger

int getSoLinger()
                throws SocketException
Throws:
SocketException

getSoTimeout

int getSoTimeout()
                 throws SocketException
Throws:
SocketException

getTcpNoDelay

boolean getTcpNoDelay()
                      throws SocketException
Throws:
SocketException

getTrafficClass

int getTrafficClass()
                    throws SocketException
Throws:
SocketException

isBound

boolean isBound()

isClosed

boolean isClosed()

isConnected

boolean isConnected()

setKeepAlive

void setKeepAlive(boolean on)
                  throws SocketException
Throws:
SocketException

setOOBInline

void setOOBInline(boolean on)
                  throws SocketException
Throws:
SocketException

setReceiveBufferSize

void setReceiveBufferSize(int size)
                          throws SocketException
Throws:
SocketException

setReuseAddress

void setReuseAddress(boolean on)
                     throws SocketException
Throws:
SocketException

setSendBufferSize

void setSendBufferSize(int size)
                       throws SocketException
Throws:
SocketException

setSoLinger

void setSoLinger(boolean on,
                 int linger)
                 throws SocketException
Throws:
SocketException

setTcpNoDelay

void setTcpNoDelay(boolean on)
                   throws SocketException
Throws:
SocketException

setTrafficClass

void setTrafficClass(int tc)
                     throws SocketException
Throws:
SocketException


Copyright © -2009 The ActiveIO Project. All Rights Reserved.