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
-
getStatus()
-
-
removeMessage(Message)
- removes message from receivedList
-
run()
- main method, which implements all communication tasks
-
sendMessage(int, String)
- puts message into sendList.
-
setPassword(String)
- sets password
-
setPort(int)
- sets port
-
setTargetHost(InetAddress)
- sets server's address
-
setUin(int)
- sets user uin
-
stop()
- correctly disconnects from server and stops communication process
getStatus
public synchronized int getStatus()
- Returns:
- current status
removeMessage
public void removeMessage(Message m)
- removes message from receivedList
- Parameters:
- m - message to remove from list
run
public void run()
- main method, which implements all communication tasks
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
setPassword
public void setPassword(String s)
- sets password
- Parameters:
- s - user password required at login time
setPort
public void setPort(int p)
- sets port
- Parameters:
- p - server port number
setTargetHost
public void setTargetHost(InetAddress a)
- sets server's address
- Parameters:
- a - new server address
setUin
public void setUin(int uin)
- sets user uin
- Parameters:
- uin - personal user identification number
stop
public synchronized void stop()
- correctly disconnects from server and stops communication process
All Packages Class Hierarchy This Package Previous Next Index