ants.p2p.security.sockets
Class SecureP2PClientSocket
java.lang.Object
ants.p2p.security.sockets.SecureP2PClientSocket
- All Implemented Interfaces:
- SecureClientSocket
public class SecureP2PClientSocket
- extends java.lang.Object
- implements SecureClientSocket
Constructor Summary |
SecureP2PClientSocket(java.lang.String remoteAddress,
int remotePort,
int localServerPort,
boolean proxied)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureP2PClientSocket
public SecureP2PClientSocket(java.lang.String remoteAddress,
int remotePort,
int localServerPort,
boolean proxied)
throws java.lang.Exception
- Throws:
java.lang.Exception
isNewVersionDetected
public boolean isNewVersionDetected()
- Specified by:
isNewVersionDetected
in interface SecureClientSocket
getNewerVersion
public java.lang.String getNewerVersion()
- Specified by:
getNewerVersion
in interface SecureClientSocket
getTimeElapsed
public long getTimeElapsed()
- Specified by:
getTimeElapsed
in interface SecureClientSocket
getCipherEnc
public javax.crypto.Cipher getCipherEnc()
- Specified by:
getCipherEnc
in interface SecureClientSocket
getCipherDec
public javax.crypto.Cipher getCipherDec()
- Specified by:
getCipherDec
in interface SecureClientSocket
getLocalServerPort
public int getLocalServerPort()
- Specified by:
getLocalServerPort
in interface SecureClientSocket
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface SecureClientSocket
- Throws:
java.io.IOException
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface SecureClientSocket
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream
in interface SecureClientSocket
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream
in interface SecureClientSocket
- Throws:
java.io.IOException
getInetAddress
public java.net.InetAddress getInetAddress()
- Specified by:
getInetAddress
in interface SecureClientSocket
getPort
public int getPort()
- Specified by:
getPort
in interface SecureClientSocket
getSocket
public java.net.Socket getSocket()
- Specified by:
getSocket
in interface SecureClientSocket