|
||||||||||
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
ICQ TCP v6 - v8 support.
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,
java.lang.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,
java.lang.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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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, java.lang.String host, int port, boolean incoming)
DirectClient
instance.
sess
- an AIMSession
valueuin
- an int
valuehost
- a String
valueport
- an int
valueincoming
- a boolean
valueMethod Detail |
public int getLocalPort()
getLocalPort
method here.
int
valuepublic void confirmUIN() throws java.io.IOException
confirmUIN
method here.
java.io.IOException
- if an error occurspublic void sendInitPacket() throws java.io.IOException
sendInitPacket
method here.
java.io.IOException
- if an error occurspublic void sendInitAck() throws java.io.IOException
sendInitAck
method here.
java.io.IOException
- if an error occurspublic void sendInit2() throws java.io.IOException
sendInit2
method here.
java.io.IOException
- if an error occurspublic void sendAck(int seq, int subcmd, boolean accept) throws java.io.IOException
sendAck
method here.
seq
- an int
valuesubcmd
- an int
valueaccept
- a boolean
value
java.io.IOException
- if an error occurspublic void sendMessage(int uin, java.lang.String msg, short subcmd, int lstatus, ICQColor foregroundColor, ICQColor backgroundColor) throws java.io.IOException
sendMessage
method here.
uin
- an int
valuemsg
- a String
valuesubcmd
- a short
valuelstatus
- an int
valueforegroundColor
- an ICQColor
valuebackgroundColor
- an ICQColor
value
java.io.IOException
- if an error occurspublic void parseInitPacket(AIMInputStream buffer) throws java.io.IOException
parseInitPacket
method here.
buffer
- an AIMInputStream
value
java.io.IOException
- if an error occurspublic void parseInitAck(AIMInputStream buffer) throws java.io.IOException
parseInitAck
method here.
buffer
- an AIMInputStream
value
java.io.IOException
- if an error occurspublic void parseInit2(AIMInputStream buffer) throws java.io.IOException
parseInit2
method here.
buffer
- an AIMInputStream
value
java.io.IOException
- if an error occurspublic void parsePacket(AIMInputStream buffer) throws java.io.IOException
parsePacket
method here.
buffer
- an AIMInputStream
value
java.io.IOException
- if an error occurspublic void parsePacketInt(AIMInputStream buffer) throws java.io.IOException
parsePacketInt
method here.
buffer
- an AIMInputStream
value
java.io.IOException
- if an error occurspublic boolean decrypt(AIMInputStream in, AIMOutputStream out) throws java.io.IOException
in
- an AIMInputStream
valueout
- an AIMOutputStream
value
boolean
value
java.io.IOException
- if an error occurspublic void encrypt(AIMInputStream in, AIMOutputStream out) throws java.io.IOException
encrypt
method here.
in
- an AIMInputStream
valueout
- an AIMOutputStream
value
java.io.IOException
- if an error occurspublic void sendDirect(AIMOutputStream b, boolean encrypt) throws java.io.IOException
sendDirect
method here.
b
- an AIMOutputStream
valueencrypt
- a boolean
value
java.io.IOException
- if an error occurspublic int nextMsgId()
public void run()
run
method here.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |