|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.skype.ipc.TCPSocketTransport
public class TCPSocketTransport
| Field Summary | |
|---|---|
static int |
BUFFERSIZE
|
static int |
STREAMTIMEOUT
|
| Constructor Summary | |
|---|---|
TCPSocketTransport(java.lang.String IpAddress,
int Port)
|
|
| Method Summary | |
|---|---|
boolean |
connect()
brief Connects to skypekit. |
void |
disconnect()
Disconnects from skypekit |
java.io.InputStream |
GetInputStream()
|
java.io.OutputStream |
GetOutputStream()
|
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 requirenumbytes)
\brief Read number of bytes indicated. |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFERSIZE
public static final int STREAMTIMEOUT
| Constructor Detail |
|---|
public TCPSocketTransport(java.lang.String IpAddress,
int Port)
| Method Detail |
|---|
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 isConnected()
throws java.io.IOException
Transport
isConnected in interface Transportjava.io.IOExceptionpublic void startLogging(java.lang.String logFileName)
Transport
startLogging in interface Transport
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 requirenumbytes)
throws java.io.IOException
Transport
read in interface Transportjava.io.IOException
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.IOExceptionpublic java.io.InputStream GetInputStream()
public java.io.OutputStream GetOutputStream()
public boolean hasMore()
throws java.io.IOException
hasMore in interface Transportjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||