public class AIM extends Object
Modifier and Type | Field and Description |
---|---|
String |
authHost
The OSCAR authentication server.
|
int |
authPort
The OSCAR authentication server's port.
|
static int |
DATA
The ID number for a DATA packet (flap).
|
String |
language
What language to use.
|
String |
roastString
The string used to "roast" passwords.
|
static int |
SIGNON
The ID number for a SIGNON packet(FLAP).
|
String |
tocHost
The host address of the TOC server.
|
int |
tocPort
The port used to connect to the TOC server.
|
String |
version
The version of the client.
|
Constructor and Description |
---|
AIM(String id,
String password)
Constructor for AIM.
|
public String tocHost
public int tocPort
public String authHost
public int authPort
public String language
public String version
public String roastString
public static final int SIGNON
public static final int DATA
public boolean login(String id, String password)
id
- The screen name to login withpassword
- The screen name's passwordpublic void logout()
public void send(String to, String msg)
to
- Screen name to send an IM tomsg
- The instant messagepublic String getError()
public boolean isLoggedin()
Copyright © 2013. All Rights Reserved.