org.activeio.net
Interface SocketMetadata

All Known Implementing Classes:
NIOBaseChannel, 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

public InetAddress getInetAddress()

getKeepAlive

public boolean getKeepAlive()
                     throws SocketException
Throws:
SocketException

getLocalAddress

public InetAddress getLocalAddress()

getLocalPort

public int getLocalPort()

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()

getOOBInline

public boolean getOOBInline()
                     throws SocketException
Throws:
SocketException

getPort

public int getPort()

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws SocketException
Throws:
SocketException

getRemoteSocketAddress

public SocketAddress getRemoteSocketAddress()

getReuseAddress

public boolean getReuseAddress()
                        throws SocketException
Throws:
SocketException

getSendBufferSize

public int getSendBufferSize()
                      throws SocketException
Throws:
SocketException

getSoLinger

public int getSoLinger()
                throws SocketException
Throws:
SocketException

getSoTimeout

public int getSoTimeout()
                 throws SocketException
Throws:
SocketException

getTcpNoDelay

public boolean getTcpNoDelay()
                      throws SocketException
Throws:
SocketException

getTrafficClass

public int getTrafficClass()
                    throws SocketException
Throws:
SocketException

isBound

public boolean isBound()

isClosed

public boolean isClosed()

isConnected

public boolean isConnected()

setKeepAlive

public void setKeepAlive(boolean on)
                  throws SocketException
Throws:
SocketException

setOOBInline

public void setOOBInline(boolean on)
                  throws SocketException
Throws:
SocketException

setReceiveBufferSize

public void setReceiveBufferSize(int size)
                          throws SocketException
Throws:
SocketException

setReuseAddress

public void setReuseAddress(boolean on)
                     throws SocketException
Throws:
SocketException

setSendBufferSize

public void setSendBufferSize(int size)
                       throws SocketException
Throws:
SocketException

setSoLinger

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

setTcpNoDelay

public void setTcpNoDelay(boolean on)
                   throws SocketException
Throws:
SocketException

setTrafficClass

public void setTrafficClass(int tc)
                     throws SocketException
Throws:
SocketException


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