|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.oscar.handlers.SNACHandler
org.walluck.oscar.handlers.ChatHandler
public class ChatHandler
Family 0x000e - Routines for the Chat service.
SNACHandler
Constructor Summary | |
---|---|
ChatHandler()
Family 0x000e. |
Method Summary | |
---|---|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's. |
void |
join(AIMSession sess,
AIMConnection conn,
int exchange,
String name,
int instance)
Join a chat room. |
void |
leaveRoom(AIMSession sess,
String name)
Leave a chat room. |
void |
sendIM(AIMSession sess,
AIMConnection conn,
int flags,
String msg)
Subtype 0x0005 - Send a chat message. |
Methods inherited from class org.walluck.oscar.handlers.SNACHandler |
---|
getFamily, getVersion, setFamily, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChatHandler()
Method Detail |
---|
public void join(AIMSession sess, AIMConnection conn, int exchange, String name, int instance) throws IOException
sess
- the oscar sessionconn
- the chat connection for this sessionexchange
- the exchangename
- the room nameinstance
- the instance
IOException
- if an error occurspublic void leaveRoom(AIMSession sess, String name)
sess
- the oscar sessionname
- the name of the room to leavepublic void sendIM(AIMSession sess, AIMConnection conn, int flags, String msg) throws IOException
Unlike gaim, this has been converted to use TLVChain's.
Possible chat flags:
sess
- the oscar sessionconn
- the chat conenction for this sessionflags
- the chat flagsmsg
- the message
IOException
- if an error occurspublic void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer) throws IOException
handleSNAC
in class SNACHandler
sess
- the oscar sessionhandler
- the handlerframe
- the incoming framesnac
- the incoming SNACbuffer
- the incoming buffer
IOException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |