|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.skype.ipc.TLSServerTransport
public class TLSServerTransport
| Nested Class Summary | |
|---|---|
class |
TLSServerTransport.dummyKeyManager
|
class |
TLSServerTransport.dummyTrustManager
|
| Constructor Summary | |
|---|---|
TLSServerTransport(Transport t,
java.security.cert.X509Certificate cert,
java.security.PrivateKey privKey)
|
|
| Method Summary | |
|---|---|
boolean |
connect()
brief Connects to skypekit. |
void |
disconnect()
Disconnects from skypekit |
protected void |
finalize()
|
boolean |
hasMore()
|
boolean |
isConnected()
\brief Check if the connection to SkypeKit is still there. |
int |
peek()
\brief Check value of next byte, but do not remove from stream. |
int |
read()
\brief Read one byte. |
int |
read(int numBytes,
byte[] bytes)
\brief Read as many bytes as possible, but not more than num_bytes. |
int |
read(int numBytes,
byte[] bytes,
boolean needNumBytes)
\brief Read number of bytes indicated. |
protected void |
readChunks()
drain all input from transport stream and decrypt using engine. |
void |
startLogging(java.lang.String logFileName)
\brief start transport logging to two files based on logFileName path. |
boolean |
write(byte b)
\brief Write one byte. |
boolean |
write(int numBytes,
byte[] bytes)
\brief Write buffer to stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TLSServerTransport(Transport t,
java.security.cert.X509Certificate cert,
java.security.PrivateKey privKey)
| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void startLogging(java.lang.String logFileName)
Transport
startLogging in interface Transport
public boolean connect()
throws java.io.IOException
Transport
connect in interface Transportjava.io.IOException
public void disconnect()
throws java.io.IOException
Transport
disconnect in interface Transportjava.io.IOException
public boolean hasMore()
throws java.io.IOException
hasMore in interface Transportjava.io.IOException
public boolean isConnected()
throws java.io.IOException
Transport
isConnected in interface Transportjava.io.IOException
public int peek()
throws java.io.IOException
Transport
peek in interface Transportjava.io.IOException
public int read()
throws java.io.IOException
Transport
read in interface Transportjava.io.IOException
public int read(int numBytes,
byte[] bytes)
throws java.io.IOException
Transport
read in interface Transportjava.io.IOException
public int read(int numBytes,
byte[] bytes,
boolean needNumBytes)
throws java.io.IOException
Transport
read in interface Transportjava.io.IOException
protected void readChunks()
throws java.io.IOException
raw_bytes - - buffer to accept unwrapped bytes read from socket
java.io.IOException - - when read buffer is too small, or other socket read exceptions thrown
public boolean write(byte b)
throws java.io.IOException
Transport
write in interface Transportjava.io.IOException
public boolean write(int numBytes,
byte[] bytes)
throws java.io.IOException
Transport
write in interface Transportjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||