java.lang.Object
org.alicebot.server.net.listener.AliceChatListener
org.alicebot.server.net.listener.AliceICQ
- All Implemented Interfaces:
- org.alicebot.server.core.BotProcess, java.lang.Runnable
- public class AliceICQ
- extends AliceChatListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVERPORT
private static final int SERVERPORT
- See Also:
- Constant Field Values
SERVER
private static final java.lang.String SERVER
- See Also:
- Constant Field Values
_ICQ
private static final java.lang.String _ICQ
- See Also:
- Constant Field Values
pass
private java.lang.String pass
uin
private int uin
socket
protected java.net.DatagramSocket socket
packet
private java.net.DatagramPacket packet
buffer
private byte[] buffer
seqNo
private short seqNo
VERSION
private static final short VERSION
- See Also:
- Constant Field Values
serverAddy
private static java.net.InetAddress serverAddy
online
private boolean online
clientport
private int clientport
MSG
private static final java.lang.String MSG
- See Also:
- Constant Field Values
label
public static final java.lang.String label
- See Also:
- Constant Field Values
AliceICQ
public AliceICQ(org.alicebot.server.core.Bot bot)
checkParameters
public boolean checkParameters()
- Specified by:
checkParameters in class AliceChatListener
run
public void run()
- Description copied from interface:
java.lang.Runnable
- This method will be called by whoever wishes to run your class
implementing Runnable. Note that there are no restrictions on what
you are allowed to do in the run method, except that you cannot
throw a checked exception.
shutdown
public void shutdown()
toICQ
public void toICQ(byte[] abyte0)
throws java.io.IOException
fromICQ
private void fromICQ(byte[] abyte0)
toBytes
public static byte[] toBytes(short word0)
toBytes
public static byte[] toBytes(int i)
header
public byte[] header(short word0)
throws java.io.IOException
ack
public void ack(byte byte0,
byte byte1)
throws java.io.IOException
send
public void send(byte[] abyte0)
throws java.io.IOException
sendMesg
public void sendMesg(int i,
java.lang.String s)
signoff
public void signoff()
logMessage
private void logMessage(java.lang.String s)