Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.alicebot.server.net.listener
Class AliceICQ  view AliceICQ download AliceICQ.java

java.lang.Object
  extended byorg.alicebot.server.net.listener.AliceChatListener
      extended byorg.alicebot.server.net.listener.AliceICQ
All Implemented Interfaces:
org.alicebot.server.core.BotProcess, java.lang.Runnable

public class AliceICQ
extends AliceChatListener


Field Summary
private static java.lang.String _ICQ
           
private  byte[] buffer
           
private  int clientport
           
static java.lang.String label
           
private static java.lang.String MSG
           
private  boolean online
           
private  java.net.DatagramPacket packet
           
private  java.lang.String pass
           
private  short seqNo
           
private static java.lang.String SERVER
           
private static java.net.InetAddress serverAddy
           
private static int SERVERPORT
           
protected  java.net.DatagramSocket socket
           
private  int uin
           
private static short VERSION
           
 
Fields inherited from class org.alicebot.server.net.listener.AliceChatListener
bot, botID, parameters
 
Constructor Summary
AliceICQ(org.alicebot.server.core.Bot bot)
           
 
Method Summary
 void ack(byte byte0, byte byte1)
           
 boolean checkParameters()
           
private  void fromICQ(byte[] abyte0)
           
 byte[] header(short word0)
           
private  void logMessage(java.lang.String s)
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void send(byte[] abyte0)
           
 void sendMesg(int i, java.lang.String s)
           
 void shutdown()
           
 void signoff()
           
static byte[] toBytes(int i)
           
static byte[] toBytes(short word0)
           
 void toICQ(byte[] abyte0)
           
 
Methods inherited from class org.alicebot.server.net.listener.AliceChatListener
setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AliceICQ

public AliceICQ(org.alicebot.server.core.Bot bot)
Method Detail

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)