|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.java.sip.communicator.impl.protocol.zeroconf.ClientThread
public class ClientThread
Class creating a thread responsible for handling the chat with the remote user on the other end of the socket
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ClientThread(Socket sock,
BonjourService bonjourService)
Creates a new instance of ClientThread reponsible for handling the conversation with the remote user. |
|
| Method Summary | |
|---|---|
void |
cleanThread()
Clean-up the thread to exit |
protected boolean |
isStreamOpened()
Says if the stream between the local user and the remote user is in an opened state (greetings are over and we can chat) |
void |
run()
Walk? |
protected void |
sendHello()
Say hello :) |
void |
sendMessage(MessageZeroconfImpl msg)
Send a message to the remote user |
protected void |
setContact(ContactZeroconfImpl contact)
Sets the contact with which we're chatting in this ClientThread |
protected void |
setStreamOpen()
Set the stream as opened. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientThread(Socket sock,
BonjourService bonjourService)
sock - Socket created for chattingbonjourService - BonjourService which spawned this ClientThread| Method Detail |
|---|
protected void setContact(ContactZeroconfImpl contact)
contact - Zeroconf contact with which we're chattingprotected void setStreamOpen()
protected boolean isStreamOpened()
protected void sendHello()
public void sendMessage(MessageZeroconfImpl msg)
msg - Message to sendpublic void run()
run in interface Runnablerun in class Threadpublic void cleanThread()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||