|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.Socket
net.i2p.util.InternalSocket
public class InternalSocket
A simple in-JVM Socket using Piped Streams. We use port numbers just like regular sockets. Can only connect to InternalServerSocket.
| Constructor Summary | |
|---|---|
InternalSocket(InputStream is,
OutputStream os)
server side |
|
InternalSocket(int port)
client side |
|
| Method Summary | |
|---|---|
void |
bind(SocketAddress endpoint)
Deprecated. unsupported |
void |
close()
|
void |
connect(SocketAddress endpoint)
Deprecated. unsupported |
void |
connect(SocketAddress endpoint,
int timeout)
Deprecated. unsupported |
SocketChannel |
getChannel()
Deprecated. unsupported |
InetAddress |
getInetAddress()
Deprecated. unsupported |
InputStream |
getInputStream()
|
boolean |
getKeepAlive()
Deprecated. unsupported |
InetAddress |
getLocalAddress()
Deprecated. unsupported |
int |
getLocalPort()
Deprecated. unsupported |
SocketAddress |
getLocalSocketAddress()
Deprecated. unsupported |
boolean |
getOOBInline()
Deprecated. unsupported |
OutputStream |
getOutputStream()
|
int |
getPort()
Deprecated. unsupported |
int |
getReceiveBufferSize()
Deprecated. unsupported |
SocketAddress |
getRemoteSocketAddress()
Deprecated. unsupported |
boolean |
getReuseAddress()
Deprecated. unsupported |
int |
getSendBufferSize()
Deprecated. unsupported |
static Socket |
getSocket(String host,
int port)
Convenience method to return either a Socket or an InternalSocket |
int |
getSoLinger()
Deprecated. unsupported |
int |
getSoTimeout()
|
boolean |
getTcpNoDelay()
Deprecated. unsupported |
int |
getTrafficClass()
Deprecated. unsupported |
boolean |
isBound()
Deprecated. unsupported |
boolean |
isClosed()
|
boolean |
isConnected()
Deprecated. unsupported |
boolean |
isInputShutdown()
Deprecated. unsupported |
boolean |
isOutputShutdown()
Deprecated. unsupported |
void |
sendUrgentData(int data)
Deprecated. unsupported |
(package private) void |
setInputStream(InputStream is)
|
void |
setKeepAlive(boolean on)
Deprecated. unsupported |
void |
setOOBInline(boolean on)
Deprecated. unsupported |
(package private) void |
setOutputStream(OutputStream os)
|
void |
setReceiveBufferSize(int size)
Deprecated. unsupported |
void |
setReuseAddress(boolean on)
Deprecated. unsupported |
void |
setSendBufferSize(int size)
Deprecated. unsupported |
void |
setSoLinger(boolean on,
int linger)
Deprecated. unsupported |
void |
setSoTimeout(int timeout)
warning - unsupported |
void |
setTcpNoDelay(boolean on)
Deprecated. unsupported |
void |
setTrafficClass(int cize)
Deprecated. unsupported |
void |
shutdownInput()
Deprecated. unsupported |
void |
shutdownOutput()
Deprecated. unsupported |
String |
toString()
|
| Methods inherited from class java.net.Socket |
|---|
setPerformancePreferences, setSocketImplFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
InternalSocket(InputStream is,
OutputStream os)
public InternalSocket(int port)
throws IOException
port - > 0
IOException| Method Detail |
|---|
public static Socket getSocket(String host,
int port)
throws IOException
port - > 0
IOExceptionpublic InputStream getInputStream()
getInputStream in class Socketpublic OutputStream getOutputStream()
getOutputStream in class Socketvoid setInputStream(InputStream is)
void setOutputStream(OutputStream os)
public void close()
close in class Socketpublic boolean isClosed()
isClosed in class Socketpublic String toString()
toString in class Socketpublic void setSoTimeout(int timeout)
setSoTimeout in class Socketpublic int getSoTimeout()
getSoTimeout in class Socketpublic void bind(SocketAddress endpoint)
bind in class Socketpublic void connect(SocketAddress endpoint)
connect in class Socket
public void connect(SocketAddress endpoint,
int timeout)
connect in class Socketpublic SocketChannel getChannel()
getChannel in class Socketpublic InetAddress getInetAddress()
getInetAddress in class Socketpublic 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 Socketpublic int getPort()
getPort in class Socketpublic int getReceiveBufferSize()
getReceiveBufferSize in class Socketpublic SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class Socketpublic boolean getReuseAddress()
getReuseAddress in class Socketpublic int getSendBufferSize()
getSendBufferSize in class Socketpublic int getSoLinger()
getSoLinger in class Socketpublic boolean getTcpNoDelay()
getTcpNoDelay in class Socketpublic int getTrafficClass()
getTrafficClass in class Socketpublic boolean isBound()
isBound 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 Socketpublic void setKeepAlive(boolean on)
setKeepAlive in class Socketpublic void setOOBInline(boolean on)
setOOBInline 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 Socketpublic void setTcpNoDelay(boolean on)
setTcpNoDelay in class Socketpublic void setTrafficClass(int cize)
setTrafficClass in class Socketpublic void shutdownInput()
shutdownInput in class Socketpublic void shutdownOutput()
shutdownOutput in class Socket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||