Skip navigation links
com.tangosol.net
Class WrapperServerSocket
java.lang.Object
java.net.ServerSocket
com.tangosol.net.WrapperServerSocket
-
public class WrapperServerSocket
- extends ServerSocket
Wrapper server socket which delegates all operations to a delegate socket.
- Author:
- jh/mf 2010.04.27
m_delegate
protected final ServerSocket m_delegate
- The delegate socket.
WrapperServerSocket
public WrapperServerSocket(ServerSocket socket)
throws IOException
- Create a new ServerSocket that delegates all operations to the given server socket.
- Parameters:
socket
- the delegate server socket
- Throws:
IOException
- on error opening the socket
accept
public Socket accept()
throws IOException
-
- Overrides:
accept
in class ServerSocket
-
- Throws:
IOException
bind
public void bind(SocketAddress endpoint)
throws IOException
-
- Overrides:
bind
in class ServerSocket
-
- Throws:
IOException
bind
public void bind(SocketAddress endpoint,
int backlog)
throws IOException
-
- Overrides:
bind
in class ServerSocket
-
- Throws:
IOException
close
public void close()
throws IOException
-
- Overrides:
close
in class ServerSocket
-
- Throws:
IOException
getChannel
public ServerSocketChannel getChannel()
-
- Overrides:
getChannel
in class ServerSocket
getInetAddress
public InetAddress getInetAddress()
-
- Overrides:
getInetAddress
in class ServerSocket
getLocalPort
public int getLocalPort()
-
- Overrides:
getLocalPort
in class ServerSocket
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
-
- Overrides:
getLocalSocketAddress
in class ServerSocket
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
-
- Overrides:
getReceiveBufferSize
in class ServerSocket
-
- Throws:
SocketException
getReuseAddress
public boolean getReuseAddress()
throws SocketException
-
- Overrides:
getReuseAddress
in class ServerSocket
-
- Throws:
SocketException
getSoTimeout
public int getSoTimeout()
throws IOException
-
- Overrides:
getSoTimeout
in class ServerSocket
-
- Throws:
IOException
isBound
public boolean isBound()
-
- Overrides:
isBound
in class ServerSocket
isClosed
public boolean isClosed()
-
- Overrides:
isClosed
in class ServerSocket
setPerformancePreferences
public void setPerformancePreferences(int nConnectionTime,
int nLatency,
int nBandwidth)
-
- Overrides:
setPerformancePreferences
in class ServerSocket
setReceiveBufferSize
public void setReceiveBufferSize(int cb)
throws SocketException
-
- Overrides:
setReceiveBufferSize
in class ServerSocket
-
- Throws:
SocketException
setReuseAddress
public void setReuseAddress(boolean fReuse)
throws SocketException
-
- Overrides:
setReuseAddress
in class ServerSocket
-
- Throws:
SocketException
setSoTimeout
public void setSoTimeout(int cSecs)
throws SocketException
-
- Overrides:
setSoTimeout
in class ServerSocket
-
- Throws:
SocketException
toString
public String toString()
-
- Overrides:
toString
in class ServerSocket
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.