|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.Socket
net.i2p.client.streaming.StandardSocket
class StandardSocket
Bridge to I2PSocket. This extends Socket to make porting apps easier. Methods throw IOExceptions like Sockets do, rather than returning null for some methods. StandardSockets are always bound, and always start out connected (unless connectDelay is > 0). You may not create an unbound StandardSocket. Create this through the SocketManager. Todo: Make public and add getPeerDestination() ?
| Constructor Summary | |
|---|---|
StandardSocket(I2PSocket socket)
|
|
| Methods inherited from class java.net.Socket |
|---|
setSocketImplFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
StandardSocket(I2PSocket socket)
| Method Detail |
|---|
public void bind(SocketAddress bindpoint)
bind in class SocketUnsupportedOperationException - always
public void close()
throws IOException
close in class SocketIOExceptionpublic void connect(SocketAddress endpoint)
connect in class SocketUnsupportedOperationException - always
public void connect(SocketAddress endpoint,
int timeout)
connect in class SocketUnsupportedOperationException - alwayspublic SocketChannel getChannel()
getChannel in class Socketpublic InetAddress getInetAddress()
getInetAddress in class Socket
public InputStream getInputStream()
throws IOException
getInputStream in class SocketIOExceptionpublic boolean getKeepAlive()
getKeepAlive in class Socketpublic InetAddress getLocalAddress()
getLocalAddress in class Socketpublic int getLocalPort()
getLocalPort in class Socketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class Socketpublic boolean getOOBInline()
getOOBInline in class Socket
public OutputStream getOutputStream()
throws IOException
getOutputStream in class SocketIOExceptionpublic int getPort()
getPort in class Socketpublic int getReceiveBufferSize()
getReceiveBufferSize in class Socketpublic SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class SocketUnsupportedOperationException - alwayspublic boolean getReuseAddress()
getReuseAddress in class Socketpublic int getSendBufferSize()
getSendBufferSize in class Socketpublic int getSoLinger()
getSoLinger in class Socketpublic int getSoTimeout()
getSoTimeout in class Socketpublic boolean getTcpNoDelay()
getTcpNoDelay in class Socketpublic int getTrafficClass()
getTrafficClass in class Socketpublic boolean isBound()
isBound in class Socketpublic boolean isClosed()
isClosed in class Socketpublic boolean isConnected()
isConnected in class Socketpublic boolean isInputShutdown()
isInputShutdown in class Socketpublic boolean isOutputShutdown()
isOutputShutdown in class Socketpublic void sendUrgentData(int data)
sendUrgentData in class SocketUnsupportedOperationException - alwayspublic void setKeepAlive(boolean on)
setKeepAlive in class Socketpublic void setOOBInline(boolean on)
setOOBInline in class SocketUnsupportedOperationException - if on is true
public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setPerformancePreferences in class Socketpublic void setReceiveBufferSize(int size)
setReceiveBufferSize in class Socketpublic void setReuseAddress(boolean on)
setReuseAddress in class Socketpublic void setSendBufferSize(int size)
setSendBufferSize in class Socket
public void setSoLinger(boolean on,
int linger)
setSoLinger in class Socket
public void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class SocketSocketExceptionpublic void setTcpNoDelay(boolean on)
setTcpNoDelay in class Socketpublic void setTrafficClass(int tc)
setTrafficClass in class Socket
public void shutdownInput()
throws IOException
shutdownInput in class SocketIOException
public void shutdownOutput()
throws IOException
shutdownOutput in class SocketIOExceptionpublic String toString()
toString in class Socket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||