Package yapion.serializing.wrapped.net
Class WrappedServerSocket
- java.lang.Object
-
- yapion.serializing.wrapped.net.WrappedServerSocket
-
public class WrappedServerSocket extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WrappedServerSocket()WrappedServerSocket(int port)WrappedServerSocket(int port, int backlog)WrappedServerSocket(int port, int backlog, java.net.InetAddress bindAddr)
-
Method Summary
Modifier and Type Method Description java.net.Socketaccept()voidbind(java.net.SocketAddress endpoint)voidbind(java.net.SocketAddress endpoint, int backlog)voidclose()java.nio.channels.ServerSocketChannelgetChannel()java.net.InetAddressgetInetAddress()intgetLocalPort()java.net.SocketAddressgetLocalSocketAddress()intgetReceiveBufferSize()booleangetReuseAddress()java.net.ServerSocketgetServerSocket()intgetSoTimeout()booleanisBound()booleanisClosed()voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth)voidsetReceiveBufferSize(int size)voidsetReuseAddress(boolean on)static voidsetSocketFactory(java.net.SocketImplFactory fac)voidsetSoTimeout(int timeout)
-
-
-
Constructor Detail
-
WrappedServerSocket
public WrappedServerSocket() throws java.io.IOException- Throws:
java.io.IOException
-
WrappedServerSocket
public WrappedServerSocket(int port) throws java.io.IOException- Throws:
java.io.IOException
-
WrappedServerSocket
public WrappedServerSocket(int port, int backlog) throws java.io.IOException- Throws:
java.io.IOException
-
WrappedServerSocket
public WrappedServerSocket(int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
getServerSocket
public java.net.ServerSocket getServerSocket()
-
bind
public void bind(java.net.SocketAddress endpoint) throws java.io.IOException- Throws:
java.io.IOException
-
bind
public void bind(java.net.SocketAddress endpoint, int backlog) throws java.io.IOException- Throws:
java.io.IOException
-
getInetAddress
public java.net.InetAddress getInetAddress()
-
getLocalPort
public int getLocalPort()
-
getLocalSocketAddress
public java.net.SocketAddress getLocalSocketAddress()
-
accept
public java.net.Socket accept() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getChannel
public java.nio.channels.ServerSocketChannel getChannel()
-
isBound
public boolean isBound()
-
isClosed
public boolean isClosed()
-
setSoTimeout
public void setSoTimeout(int timeout) throws java.net.SocketException- Throws:
java.net.SocketException
-
getSoTimeout
public int getSoTimeout() throws java.io.IOException- Throws:
java.io.IOException
-
setReuseAddress
public void setReuseAddress(boolean on) throws java.net.SocketException- Throws:
java.net.SocketException
-
getReuseAddress
public boolean getReuseAddress() throws java.net.SocketException- Throws:
java.net.SocketException
-
setSocketFactory
public static void setSocketFactory(java.net.SocketImplFactory fac) throws java.io.IOException- Throws:
java.io.IOException
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) throws java.net.SocketException- Throws:
java.net.SocketException
-
getReceiveBufferSize
public int getReceiveBufferSize() throws java.net.SocketException- Throws:
java.net.SocketException
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
-
-