Chat
Class Chat
java.lang.Object
|
+--Chat.Chat
- public class Chat
- extends java.lang.Object
A main application class with several static methods used to start
the application.
Field Summary |
static java.lang.String |
defaultHost
A default local host IP, resolved at startup. |
static int |
defaultPort
A default local listening port, set to 6060. |
static java.lang.String |
defaultURL
A default URL for server directed connection. |
Constructor Summary |
Chat()
|
Method Summary |
(package private) static void |
()
Initializes defaultHost with resolved value. |
static void |
CreateChat(Console console)
Create a new chat instance with no identity set up. |
static void |
CreateChat(Console console,
java.lang.String nick,
java.lang.String host,
int port)
Create a new chat instance with given identity. |
static void |
CreateChat(Console console,
java.lang.String nick,
java.lang.String host,
int port,
java.lang.String url,
java.lang.String room)
Create a new chat instance with given identity and connect to network via server. |
static void |
main(java.lang.String[] args)
Starts and initializes application according to command line arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
defaultHost
public static final java.lang.String defaultHost
- A default local host IP, resolved at startup.
defaultPort
public static final int defaultPort
- A default local listening port, set to 6060.
defaultURL
public static final java.lang.String defaultURL
- A default URL for server directed connection.
Chat
public Chat()
static void ()
- Initializes
defaultHost
with resolved value.
CreateChat
public static void CreateChat(Console console)
- Create a new chat instance with no identity set up.
- Parameters:
console
- a console to use.
CreateChat
public static void CreateChat(Console console,
java.lang.String nick,
java.lang.String host,
int port)
- Create a new chat instance with given identity.
- Parameters:
console
- a console to use.nick
- user nicknamehost
- user hostname (IP adress)port
- user port
CreateChat
public static void CreateChat(Console console,
java.lang.String nick,
java.lang.String host,
int port,
java.lang.String url,
java.lang.String room)
- Create a new chat instance with given identity and connect to network via server.
- Parameters:
console
- a console to use.nick
- user nicknamehost
- user hostname (IP adress)port
- user porturl
- contact server script URLroom
- name of the room
main
public static void main(java.lang.String[] args)
- Starts and initializes application according to command line arguments.
- Parameters:
args
- command line arguments.