Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.net
Class WrapperSocket

java.lang.Object
  extended by java.net.Socket
      extended by com.tangosol.net.WrapperSocket


public class WrapperSocket
extends Socket

Wrapper socket implementation that delegates all operations to a delegate socket.

Author:
jh/mf 2010.04.27

Field Summary
protected  Socket m_delegate
          The delegate socket.

 

Constructor Summary
WrapperSocket(Socket socket)
          Create a new Socket that delegates all operations to the given socket.

 

Method Summary
 void bind(SocketAddress addr)
          
 void close()
          
 void connect(SocketAddress addr)
          
 void connect(SocketAddress addr, int cMillis)
          
 SocketChannel getChannel()
          
 InetAddress getInetAddress()
          
 InputStream getInputStream()
          
 boolean getKeepAlive()
          
 InetAddress getLocalAddress()
          
 int getLocalPort()
          
 SocketAddress getLocalSocketAddress()
          
 boolean getOOBInline()
          
 OutputStream getOutputStream()
          
 int getPort()
          
 int getReceiveBufferSize()
          
 SocketAddress getRemoteSocketAddress()
          
 boolean getReuseAddress()
          
 int getSendBufferSize()
          
 int getSoLinger()
          
 int getSoTimeout()
          
 boolean getTcpNoDelay()
          
 int getTrafficClass()
          
 boolean isBound()
          
 boolean isClosed()
          
 boolean isConnected()
          
 boolean isInputShutdown()
          
 boolean isOutputShutdown()
          
 void sendUrgentData(int nData)
          
 void setKeepAlive(boolean fKeepAlive)
          
 void setOOBInline(boolean fInline)
          
 void setPerformancePreferences(int nConnectionTime, int nLatency, int nBandwidth)
          
 void setReceiveBufferSize(int cb)
          
 void setReuseAddress(boolean fReuse)
          
 void setSendBufferSize(int cb)
          
 void setSoLinger(boolean fLinger, int cSecs)
          
 void setSoTimeout(int cMillis)
          
 void setTcpNoDelay(boolean fNoDelay)
          
 void setTrafficClass(int nClass)
          
 void shutdownInput()
          
 void shutdownOutput()
          
 String toString()
          

 

Methods inherited from class java.net.Socket
setSocketImplFactory

 

Field Detail

m_delegate

protected Socket m_delegate
The delegate socket.

Constructor Detail

WrapperSocket

public WrapperSocket(Socket socket)
Create a new Socket that delegates all operations to the given socket.
Parameters:
socket - the delegate socket

Method Detail

bind

public void bind(SocketAddress addr)
          throws IOException
Overrides:
bind in class Socket
Throws:
IOException

close

public void close()
           throws IOException
Overrides:
close in class Socket
Throws:
IOException

connect

public void connect(SocketAddress addr)
             throws IOException
Overrides:
connect in class Socket
Throws:
IOException

connect

public void connect(SocketAddress addr,
                    int cMillis)
             throws IOException
Overrides:
connect in class Socket
Throws:
IOException

getChannel

public SocketChannel getChannel()
Overrides:
getChannel in class Socket

getInetAddress

public InetAddress getInetAddress()
Overrides:
getInetAddress in class Socket

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class Socket
Throws:
IOException

getKeepAlive

public boolean getKeepAlive()
                     throws SocketException
Overrides:
getKeepAlive in class Socket
Throws:
SocketException

getLocalAddress

public InetAddress getLocalAddress()
Overrides:
getLocalAddress in class Socket

getLocalPort

public int getLocalPort()
Overrides:
getLocalPort in class Socket

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()
Overrides:
getLocalSocketAddress in class Socket

getOOBInline

public boolean getOOBInline()
                     throws SocketException
Overrides:
getOOBInline in class Socket
Throws:
SocketException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Overrides:
getOutputStream in class Socket
Throws:
IOException

getPort

public int getPort()
Overrides:
getPort in class Socket

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws SocketException
Overrides:
getReceiveBufferSize in class Socket
Throws:
SocketException

getRemoteSocketAddress

public SocketAddress getRemoteSocketAddress()
Overrides:
getRemoteSocketAddress in class Socket

getReuseAddress

public boolean getReuseAddress()
                        throws SocketException
Overrides:
getReuseAddress in class Socket
Throws:
SocketException

getSendBufferSize

public int getSendBufferSize()
                      throws SocketException
Overrides:
getSendBufferSize in class Socket
Throws:
SocketException

getSoLinger

public int getSoLinger()
                throws SocketException
Overrides:
getSoLinger in class Socket
Throws:
SocketException

getSoTimeout

public int getSoTimeout()
                 throws SocketException
Overrides:
getSoTimeout in class Socket
Throws:
SocketException

getTcpNoDelay

public boolean getTcpNoDelay()
                      throws SocketException
Overrides:
getTcpNoDelay in class Socket
Throws:
SocketException

getTrafficClass

public int getTrafficClass()
                    throws SocketException
Overrides:
getTrafficClass in class Socket
Throws:
SocketException

isBound

public boolean isBound()
Overrides:
isBound in class Socket

isClosed

public boolean isClosed()
Overrides:
isClosed in class Socket

isConnected

public boolean isConnected()
Overrides:
isConnected in class Socket

isInputShutdown

public boolean isInputShutdown()
Overrides:
isInputShutdown in class Socket

isOutputShutdown

public boolean isOutputShutdown()
Overrides:
isOutputShutdown in class Socket

sendUrgentData

public void sendUrgentData(int nData)
                    throws IOException
Overrides:
sendUrgentData in class Socket
Throws:
IOException

setKeepAlive

public void setKeepAlive(boolean fKeepAlive)
                  throws SocketException
Overrides:
setKeepAlive in class Socket
Throws:
SocketException

setOOBInline

public void setOOBInline(boolean fInline)
                  throws SocketException
Overrides:
setOOBInline in class Socket
Throws:
SocketException

setPerformancePreferences

public void setPerformancePreferences(int nConnectionTime,
                                      int nLatency,
                                      int nBandwidth)
Overrides:
setPerformancePreferences in class Socket

setReceiveBufferSize

public void setReceiveBufferSize(int cb)
                          throws SocketException
Overrides:
setReceiveBufferSize in class Socket
Throws:
SocketException

setReuseAddress

public void setReuseAddress(boolean fReuse)
                     throws SocketException
Overrides:
setReuseAddress in class Socket
Throws:
SocketException

setSendBufferSize

public void setSendBufferSize(int cb)
                       throws SocketException
Overrides:
setSendBufferSize in class Socket
Throws:
SocketException

setSoLinger

public void setSoLinger(boolean fLinger,
                        int cSecs)
                 throws SocketException
Overrides:
setSoLinger in class Socket
Throws:
SocketException

setSoTimeout

public void setSoTimeout(int cMillis)
                  throws SocketException
Overrides:
setSoTimeout in class Socket
Throws:
SocketException

setTcpNoDelay

public void setTcpNoDelay(boolean fNoDelay)
                   throws SocketException
Overrides:
setTcpNoDelay in class Socket
Throws:
SocketException

setTrafficClass

public void setTrafficClass(int nClass)
                     throws SocketException
Overrides:
setTrafficClass in class Socket
Throws:
SocketException

shutdownInput

public void shutdownInput()
                   throws IOException
Overrides:
shutdownInput in class Socket
Throws:
IOException

shutdownOutput

public void shutdownOutput()
                    throws IOException
Overrides:
shutdownOutput in class Socket
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Socket

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.