public class DirectClient extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTED
Connected.
|
static int |
WAITING_FOR_INIT
Waiting for init.
|
static int |
WAITING_FOR_INIT_ACK
Waiting for init ack.
|
static int |
WAITING_FOR_INIT2
Waiting for init 2.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
DirectClient(AIMSession sess,
int uin,
String host,
int port,
boolean incoming)
Creates a new
DirectClient instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
confirmUIN()
Describe
confirmUIN method here. |
boolean |
decrypt(AIMInputStream in,
AIMOutputStream out)
FIXME: this is completely broken.
|
void |
encrypt(AIMInputStream in,
AIMOutputStream out)
Describe
encrypt method here. |
int |
getLocalPort()
Describe
getLocalPort method here. |
int |
nextMsgId()
Get the next Msg ID.
|
void |
parseInit2(AIMInputStream buffer)
Describe
parseInit2 method here. |
void |
parseInitAck(AIMInputStream buffer)
Describe
parseInitAck method here. |
void |
parseInitPacket(AIMInputStream buffer)
Describe
parseInitPacket method here. |
void |
parsePacket(AIMInputStream buffer)
Describe
parsePacket method here. |
void |
parsePacketInt(AIMInputStream buffer)
Describe
parsePacketInt method here. |
void |
run()
Describe
run method here. |
void |
sendAck(int seq,
int subcmd,
boolean accept)
Describe
sendAck method here. |
void |
sendDirect(AIMOutputStream b,
boolean encrypt)
Describe
sendDirect method here. |
void |
sendInit2()
Describe
sendInit2 method here. |
void |
sendInitAck()
Describe
sendInitAck method here. |
void |
sendInitPacket()
Describe
sendInitPacket method here. |
void |
sendMessage(int uin,
String msg,
short subcmd,
int lstatus,
ICQColor foregroundColor,
ICQColor backgroundColor)
Describe
sendMessage method here. |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static final int WAITING_FOR_INIT_ACK
public static final int WAITING_FOR_INIT
public static final int WAITING_FOR_INIT2
public static final int CONNECTED
public DirectClient(AIMSession sess, int uin, String host, int port, boolean incoming)
DirectClient instance.sess - an AIMSession valueuin - an int valuehost - a String valueport - an int valueincoming - a boolean valuepublic int getLocalPort()
getLocalPort method here.int valuepublic void confirmUIN()
throws IOException
confirmUIN method here.IOException - if an error occurspublic void sendInitPacket()
throws IOException
sendInitPacket method here.IOException - if an error occurspublic void sendInitAck()
throws IOException
sendInitAck method here.IOException - if an error occurspublic void sendInit2()
throws IOException
sendInit2 method here.IOException - if an error occurspublic void sendAck(int seq,
int subcmd,
boolean accept)
throws IOException
sendAck method here.seq - an int valuesubcmd - an int valueaccept - a boolean valueIOException - if an error occurspublic void sendMessage(int uin,
String msg,
short subcmd,
int lstatus,
ICQColor foregroundColor,
ICQColor backgroundColor)
throws IOException
sendMessage method here.uin - an int valuemsg - a String valuesubcmd - a short valuelstatus - an int valueforegroundColor - an ICQColor valuebackgroundColor - an ICQColor valueIOException - if an error occurspublic void parseInitPacket(AIMInputStream buffer) throws IOException
parseInitPacket method here.buffer - an AIMInputStream valueIOException - if an error occurspublic void parseInitAck(AIMInputStream buffer) throws IOException
parseInitAck method here.buffer - an AIMInputStream valueIOException - if an error occurspublic void parseInit2(AIMInputStream buffer) throws IOException
parseInit2 method here.buffer - an AIMInputStream valueIOException - if an error occurspublic void parsePacket(AIMInputStream buffer) throws IOException
parsePacket method here.buffer - an AIMInputStream valueIOException - if an error occurspublic void parsePacketInt(AIMInputStream buffer) throws IOException
parsePacketInt method here.buffer - an AIMInputStream valueIOException - if an error occurspublic boolean decrypt(AIMInputStream in, AIMOutputStream out) throws IOException
in - an AIMInputStream valueout - an AIMOutputStream valueboolean valueIOException - if an error occurspublic void encrypt(AIMInputStream in, AIMOutputStream out) throws IOException
encrypt method here.in - an AIMInputStream valueout - an AIMOutputStream valueIOException - if an error occurspublic void sendDirect(AIMOutputStream b, boolean encrypt) throws IOException
sendDirect method here.b - an AIMOutputStream valueencrypt - a boolean valueIOException - if an error occurspublic int nextMsgId()