Class Icq.ICQEngine
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Icq.ICQEngine

Object
   |
   +----Icq.ICQEngine

public class ICQEngine
extends Object
implements Runnable
main component class, responsible for communication

Version:
1.0
Author:
Egidijus Neniskis - Lithuania

Method Index

 o getStatus()
 o removeMessage(Message)
removes message from receivedList
 o run()
main method, which implements all communication tasks
 o sendMessage(int, String)
puts message into sendList.
 o setPassword(String)
sets password
 o setPort(int)
sets port
 o setTargetHost(InetAddress)
sets server's address
 o setUin(int)
sets user uin
 o stop()
correctly disconnects from server and stops communication process

Methods

 o getStatus
public synchronized int getStatus()
Returns:
current status
 o removeMessage
public void removeMessage(Message m)
removes message from receivedList

Parameters:
m - message to remove from list
 o run
public void run()
main method, which implements all communication tasks

 o sendMessage
public void sendMessage(int targetUin,
                        String data)
puts message into sendList. Message length <=512 chars

Parameters:
targetUin - destination user identification number
data - message text
 o setPassword
public void setPassword(String s)
sets password

Parameters:
s - user password required at login time
 o setPort
public void setPort(int p)
sets port

Parameters:
p - server port number
 o setTargetHost
public void setTargetHost(InetAddress a)
sets server's address

Parameters:
a - new server address
 o setUin
public void setUin(int uin)
sets user uin

Parameters:
uin - personal user identification number
 o stop
public synchronized void stop()
correctly disconnects from server and stops communication process


All Packages  Class Hierarchy  This Package  Previous  Next  Index