|
||||||||||
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.proxy.ProxyTool
Sends proxy commands.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ProxyTool(AIMSession sess,
byte[] cookie,
java.lang.String screenname,
java.lang.String host,
int port,
boolean wantResponse)
Creates a new proxy tool. |
Method Summary | |
void |
end()
End this proxy session. |
void |
initRecv(java.lang.String sn,
int port,
byte[] cookie)
Subtype 0x0004 - Send recv command. |
void |
initSend(java.lang.String sn,
byte[] cookie)
Subtype 0x0002 - Send init command. |
boolean |
isListener()
Get the value of listener. |
boolean |
isSender()
Get the value of sender. |
void |
run()
Run method for the file transfer thread. |
void |
setListener(boolean listener)
Set the value of listener. |
void |
setSender(boolean sender)
Set the value of sender. |
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 |
Constructor Detail |
public ProxyTool(AIMSession sess, byte[] cookie, java.lang.String screenname, java.lang.String host, int port, boolean wantResponse)
sess
- the oscar sessioncookie
- the cookiescreenname
- the screennamehost
- the host (i.e., ars.aol.com)port
- the portwantResponse
- whether ot not you want an ack for this requestMethod Detail |
public void initSend(java.lang.String sn, byte[] cookie) throws java.io.IOException
sn
- the screennamecookie
- the cookie
java.io.IOException
- if an error occurspublic void initRecv(java.lang.String sn, int port, byte[] cookie) throws java.io.IOException
sn
- the screennameport
- the portcookie
- the cookie
java.io.IOException
- if an error occurspublic void setListener(boolean listener)
listener
- Value to assign to listener.public boolean isListener()
public void setSender(boolean sender)
sender
- Value to assign to sender.public boolean isSender()
public void end()
public void run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |