Package yapion.serializing.wrapped.net
Class WrappedSocket
- java.lang.Object
- 
- yapion.serializing.wrapped.net.WrappedSocket
 
- 
 public class WrappedSocket extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description WrappedSocket()WrappedSocket(java.lang.String host, int port)WrappedSocket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort)WrappedSocket(java.net.InetAddress address, int port)WrappedSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort)WrappedSocket(java.net.Proxy proxy)
 - 
Method SummaryModifier and Type Method Description voidbind(java.net.SocketAddress bindpoint)voidclose()voidconnect(java.net.SocketAddress endpoint)voidconnect(java.net.SocketAddress endpoint, int timeout)java.nio.channels.SocketChannelgetChannel()java.net.InetAddressgetInetAddress()java.io.InputStreamgetInputStream()booleangetKeepAlive()java.net.InetAddressgetLocalAddress()intgetLocalPort()java.net.SocketAddressgetLocalSocketAddress()booleangetOOBInline()java.io.OutputStreamgetOutputStream()intgetPort()intgetReceiveBufferSize()java.net.SocketAddressgetRemoteSocketAddress()booleangetReuseAddress()intgetSendBufferSize()java.net.SocketgetSocket()intgetSoLinger()intgetSoTimeout()booleangetTcpNoDelay()intgetTrafficClass()booleanisBound()booleanisClosed()booleanisConnected()booleanisInputShutdown()booleanisOutputShutdown()voidsendUrgentData(int data)voidsetKeepAlive(boolean on)voidsetOOBInline(boolean on)voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth)voidsetReceiveBufferSize(int size)voidsetReuseAddress(boolean on)voidsetSendBufferSize(int size)static voidsetSocketImplFactory(java.net.SocketImplFactory fac)voidsetSoLinger(boolean on, int linger)voidsetSoTimeout(int timeout)voidsetTcpNoDelay(boolean on)voidsetTrafficClass(int tc)voidshutdownInput()voidshutdownOutput()
 
- 
- 
- 
Constructor Detail- 
WrappedSocketpublic WrappedSocket() 
 - 
WrappedSocketpublic WrappedSocket(java.net.Proxy proxy) 
 - 
WrappedSocketpublic WrappedSocket(java.lang.String host, int port) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
WrappedSocketpublic WrappedSocket(java.net.InetAddress address, int port) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
WrappedSocketpublic WrappedSocket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
WrappedSocketpublic WrappedSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException- Throws:
- java.io.IOException
 
 
- 
 - 
Method Detail- 
getSocketpublic java.net.Socket getSocket() 
 - 
connectpublic void connect(java.net.SocketAddress endpoint) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
connectpublic void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
bindpublic void bind(java.net.SocketAddress bindpoint) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getInetAddresspublic java.net.InetAddress getInetAddress() 
 - 
getLocalAddresspublic java.net.InetAddress getLocalAddress() 
 - 
getPortpublic int getPort() 
 - 
getLocalPortpublic int getLocalPort() 
 - 
getRemoteSocketAddresspublic java.net.SocketAddress getRemoteSocketAddress() 
 - 
getLocalSocketAddresspublic java.net.SocketAddress getLocalSocketAddress() 
 - 
getChannelpublic java.nio.channels.SocketChannel getChannel() 
 - 
getInputStreampublic java.io.InputStream getInputStream() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getOutputStreampublic java.io.OutputStream getOutputStream() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
setTcpNoDelaypublic void setTcpNoDelay(boolean on) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getTcpNoDelaypublic boolean getTcpNoDelay() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
setSoLingerpublic void setSoLinger(boolean on, int linger) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getSoLingerpublic int getSoLinger() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
sendUrgentDatapublic void sendUrgentData(int data) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
setOOBInlinepublic void setOOBInline(boolean on) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getOOBInlinepublic boolean getOOBInline() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
setSoTimeoutpublic void setSoTimeout(int timeout) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getSoTimeoutpublic int getSoTimeout() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
setSendBufferSizepublic void setSendBufferSize(int size) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getSendBufferSizepublic int getSendBufferSize() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
setReceiveBufferSizepublic void setReceiveBufferSize(int size) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getReceiveBufferSizepublic int getReceiveBufferSize() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
setKeepAlivepublic void setKeepAlive(boolean on) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getKeepAlivepublic boolean getKeepAlive() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
setTrafficClasspublic void setTrafficClass(int tc) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getTrafficClasspublic int getTrafficClass() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
setReuseAddresspublic void setReuseAddress(boolean on) throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
getReuseAddresspublic boolean getReuseAddress() throws java.net.SocketException- Throws:
- java.net.SocketException
 
 - 
closepublic void close() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
shutdownInputpublic void shutdownInput() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
shutdownOutputpublic void shutdownOutput() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
isConnectedpublic boolean isConnected() 
 - 
isBoundpublic boolean isBound() 
 - 
isClosedpublic boolean isClosed() 
 - 
isInputShutdownpublic boolean isInputShutdown() 
 - 
isOutputShutdownpublic boolean isOutputShutdown() 
 - 
setSocketImplFactorypublic static void setSocketImplFactory(java.net.SocketImplFactory fac) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
setPerformancePreferencespublic void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
 
- 
 
-