|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.Socket | +--org.ssonet.mechanisms.anonymity.JAPAnonSocket
Field Summary | |
protected java.net.InetAddress |
addr
|
protected int |
port
|
Fields inherited from class java.net.Socket |
|
Constructor Summary | |
JAPAnonSocket(java.net.InetAddress hostAddr,
int port,
anon.AnonServer anonServer,
org.ssonet.mechanisms.anonymity.JAPAnonLevelChecker checker)
Creates an JAPAnonSocket and connects it through the anonServer to the host with given hostname and portname. |
Method Summary | |
void |
close()
Closes this socket. |
java.net.InetAddress |
getInetAddress()
Returns the address to which the socket is connected. |
java.io.InputStream |
getInputStream()
Returns an input stream for this socket. |
boolean |
getKeepAlive()
Not Implemented. |
java.net.InetAddress |
getLocalAddress()
Gets the local address to which the socket is bound. |
int |
getLocalPort()
Returns the local port to which this socket is bound. |
java.io.OutputStream |
getOutputStream()
Returns an output stream for this socket. |
int |
getPort()
Returns the remote port to which this socket is connected. |
int |
getReceiveBufferSize()
Not Implemented. |
int |
getSendBufferSize()
Not Implemented. |
int |
getSoLinger()
Not Implemented. |
int |
getSoTimeout()
Not Implemented. |
boolean |
getTcpNoDelay()
Not Implemented. |
void |
setKeepAlive(boolean on)
Not Implemented. |
void |
setReceiveBufferSize(int size)
Not Implemented. |
void |
setSendBufferSize(int size)
Not Implemented. |
void |
setSoLinger(boolean on,
int linger)
Not Implemented. |
void |
setSoTimeout(int timeout)
Not Implemented. |
void |
setTcpNoDelay(boolean on)
Not Implemented. |
void |
shutdownInput()
Not Implemented. |
void |
shutdownOutput()
Not Implemented. |
java.lang.String |
toString()
Converts this socket to a String . |
Methods inherited from class java.net.Socket |
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setReuseAddress, setSocketImplFactory, setTrafficClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.net.InetAddress addr
protected int port
Constructor Detail |
public JAPAnonSocket(java.net.InetAddress hostAddr, int port, anon.AnonServer anonServer, org.ssonet.mechanisms.anonymity.JAPAnonLevelChecker checker) throws java.io.IOException
hostAddr
- the internet address of remote hostport
- port at the remote hostanonServer
- the AnonServer to use
java.io.IOException
- if connection fails.Method Detail |
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.Socket
java.io.IOException
- if an I/O error occurs when creating the
input stream.public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.Socket
java.io.IOException
- if an I/O error occurs when creating the
output stream.public void close() throws java.io.IOException
close
in class java.net.Socket
java.io.IOException
- if an I/O error occurs when closing this socket.public java.net.InetAddress getInetAddress()
getInetAddress
in class java.net.Socket
public java.net.InetAddress getLocalAddress()
getLocalAddress
in class java.net.Socket
public int getPort()
getPort
in class java.net.Socket
public int getLocalPort()
getLocalPort
in class java.net.Socket
public void setTcpNoDelay(boolean on) throws java.net.SocketException
setTcpNoDelay
in class java.net.Socket
java.net.SocketException
public boolean getTcpNoDelay() throws java.net.SocketException
getTcpNoDelay
in class java.net.Socket
java.net.SocketException
public void setSoLinger(boolean on, int linger) throws java.net.SocketException
setSoLinger
in class java.net.Socket
java.net.SocketException
public int getSoLinger() throws java.net.SocketException
getSoLinger
in class java.net.Socket
java.net.SocketException
public void setSoTimeout(int timeout) throws java.net.SocketException
setSoTimeout
in class java.net.Socket
java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
getSoTimeout
in class java.net.Socket
java.net.SocketException
public void setSendBufferSize(int size) throws java.net.SocketException
setSendBufferSize
in class java.net.Socket
java.net.SocketException
public int getSendBufferSize() throws java.net.SocketException
getSendBufferSize
in class java.net.Socket
java.net.SocketException
public void setReceiveBufferSize(int size) throws java.net.SocketException
setReceiveBufferSize
in class java.net.Socket
java.net.SocketException
public int getReceiveBufferSize() throws java.net.SocketException
getReceiveBufferSize
in class java.net.Socket
java.net.SocketException
public void setKeepAlive(boolean on) throws java.net.SocketException
setKeepAlive
in class java.net.Socket
java.net.SocketException
public boolean getKeepAlive() throws java.net.SocketException
getKeepAlive
in class java.net.Socket
java.net.SocketException
public void shutdownInput() throws java.io.IOException
shutdownInput
in class java.net.Socket
java.io.IOException
public void shutdownOutput() throws java.io.IOException
shutdownOutput
in class java.net.Socket
java.io.IOException
public java.lang.String toString()
String
.
toString
in class java.net.Socket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |