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.Socket
accept()
void
bind(java.net.SocketAddress endpoint)
void
bind(java.net.SocketAddress endpoint, int backlog)
void
close()
java.nio.channels.ServerSocketChannel
getChannel()
java.net.InetAddress
getInetAddress()
int
getLocalPort()
java.net.SocketAddress
getLocalSocketAddress()
int
getReceiveBufferSize()
boolean
getReuseAddress()
java.net.ServerSocket
getServerSocket()
int
getSoTimeout()
boolean
isBound()
boolean
isClosed()
void
setPerformancePreferences(int connectionTime, int latency, int bandwidth)
void
setReceiveBufferSize(int size)
void
setReuseAddress(boolean on)
static void
setSocketFactory(java.net.SocketImplFactory fac)
void
setSoTimeout(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)
-
-