sound.chat
Class ChatModel
java.lang.Object
sound.chat.ChatModel
public class ChatModel
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChatModel
public ChatModel()
getNetwork
public Network getNetwork()
getAudio
public AudioBase getAudio(int d)
connect
public void connect(java.lang.String hostName)
- Connect to a given host or IP.
- Parameters:
hostName
- a hostname or an IP address in the form
xx.xx.xx.xx
disconnect
public void disconnect()
setListen
public void setListen(boolean bListen)
isListening
public boolean isListening()
initConnection
public void initConnection(boolean bActive)
- Set up after socket connection has been established.
This negotiates the audio format and inits the streams.
- Parameters:
bActive
- true if called for the initiating (active)
endpoint. false for the accepting (passive) endpoint.
isConnected
public boolean isConnected()
initAudioStream
public void initAudioStream()
isMicrophoneTest
public boolean isMicrophoneTest()
isAudioActive
public boolean isAudioActive()
setAudioActive
public void setAudioActive(boolean active)
toggleTestAudio
public void toggleTestAudio()
getReceiveStream
public java.io.DataInputStream getReceiveStream()
getSendStream
public java.io.OutputStream getSendStream()
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)