|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.walluck.oscar.handlers.icq.tcp.DirectClient
public class DirectClient
ICQ TCP v6 - v8 support.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
DirectClient(AIMSession sess,
int uin,
String host,
int port,
boolean incoming)
Creates a new DirectClient instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
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 value| Method Detail |
|---|
public int getLocalPort()
getLocalPort method here.
int value
public void confirmUIN()
throws IOException
confirmUIN method here.
IOException - if an error occurs
public void sendInitPacket()
throws IOException
sendInitPacket method here.
IOException - if an error occurs
public void sendInitAck()
throws IOException
sendInitAck method here.
IOException - if an error occurs
public void sendInit2()
throws IOException
sendInit2 method here.
IOException - if an error occurs
public void sendAck(int seq,
int subcmd,
boolean accept)
throws IOException
sendAck method here.
seq - an int valuesubcmd - an int valueaccept - a boolean value
IOException - if an error occurs
public 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 value
IOException - if an error occurs
public void parseInitPacket(AIMInputStream buffer)
throws IOException
parseInitPacket method here.
buffer - an AIMInputStream value
IOException - if an error occurs
public void parseInitAck(AIMInputStream buffer)
throws IOException
parseInitAck method here.
buffer - an AIMInputStream value
IOException - if an error occurs
public void parseInit2(AIMInputStream buffer)
throws IOException
parseInit2 method here.
buffer - an AIMInputStream value
IOException - if an error occurs
public void parsePacket(AIMInputStream buffer)
throws IOException
parsePacket method here.
buffer - an AIMInputStream value
IOException - if an error occurs
public void parsePacketInt(AIMInputStream buffer)
throws IOException
parsePacketInt method here.
buffer - an AIMInputStream value
IOException - if an error occurs
public boolean decrypt(AIMInputStream in,
AIMOutputStream out)
throws IOException
in - an AIMInputStream valueout - an AIMOutputStream value
boolean value
IOException - if an error occurs
public void encrypt(AIMInputStream in,
AIMOutputStream out)
throws IOException
encrypt method here.
in - an AIMInputStream valueout - an AIMOutputStream value
IOException - if an error occurs
public void sendDirect(AIMOutputStream b,
boolean encrypt)
throws IOException
sendDirect method here.
b - an AIMOutputStream valueencrypt - a boolean value
IOException - if an error occurspublic int nextMsgId()
public void run()
run method here.
run in interface Runnablerun in class Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||