|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.signal.SignalConnection
This class contains vital signaling information to identify and hangup peer applications. It also contains the data exchange connection that allows for data transfer.
Constructor Summary | |
SignalConnection()
Default Constructor |
|
SignalConnection(Connection c,
java.lang.String ip,
int p)
Constructor |
|
SignalConnection(Connection c,
java.lang.String ip,
int p,
UserID puid,
cnrg.itx.signal.DialThread d)
Constructor |
Method Summary | |
void |
abortCall()
Aborts the current dial sequence. |
boolean |
checkIfMyInvite()
Returns whether or not the InvitePacket originated with the current DesktopSignaling. |
void |
close()
|
Connection |
getConnection()
Returns the data exchange connection |
int |
getCurrentState()
|
Channel |
getInputChannel()
|
InvitePacket |
getInvite()
Returns the InvitePacket associated with the current connection. |
java.lang.String |
getIP()
Returns the IP address of the peer |
cnrg.itx.signal.KeepAlive |
getKeepAlive()
|
Channel |
getOutputChannel()
|
java.lang.Long |
getPeerSeqNumber()
Returns the uniques sequence number being used by the peer for this call |
UserID |
getPeerUID()
|
int |
getPort()
Returns the listening port of the peer |
PropertiesCollection |
getProperties()
|
java.lang.Long |
getSeqNumber()
Returns the uniques sequence number being used for this call |
Stats |
getStatistics()
|
boolean |
isConnected()
|
boolean |
isDialing()
|
boolean |
isIdle()
|
void |
open()
|
void |
setConnection(Connection c)
Sets the conection object to use for data exchange |
void |
setDialer(cnrg.itx.signal.DialThread d)
Sets the DialThread to be used for the call. |
void |
setInputChannel(Channel c)
|
void |
setInvite(InvitePacket ip)
Sets the InvitePacket associated with the connection. |
void |
setIP(java.lang.String ip)
Sets the peer's IP address |
void |
setKeepAlive(cnrg.itx.signal.KeepAlive ka)
Sets the KeepAlive object handle |
void |
setKeepAliveTime(int timeout)
Sets the KeepAlive object's wait period |
void |
setOutputChannel(Channel c)
|
void |
setPeerProperties(PropertiesCollection pc)
|
void |
setPeerSeqNumber(java.lang.Long s)
Sets the sequence number being used by the peer for this connection |
void |
setPeerUID(UserID uid)
Sets the peer's UserID |
void |
setPort(int p)
Sets the peer's listening port |
void |
setProperties(PropertiesCollection pc)
|
void |
setSeqNumber(java.lang.Long s)
Sets the sequence number for this connection |
void |
setSourceInvite(boolean ifSource)
Sets whether or not this DesktopSignaling created the InvitePacket. |
void |
startCall()
Starts dialing the peer. |
void |
startKeepAlive(DesktopSignaling ds)
Creates and starts the KeepAlive thread for the connection |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SignalConnection()
None.
- public SignalConnection(Connection c, java.lang.String ip, int p)
c
- is the connection for data exchangeip
- is the IP address of peerp
- is the listening port of peerpublic SignalConnection(Connection c, java.lang.String ip, int p, UserID puid, cnrg.itx.signal.DialThread d)
c
- is the connection for data exchangeip
- is the IP address of peerp
- is the listening port of peerpuid
- is the userID of the peerd
- is the DialThread to make the callDialThread
Method Detail |
public InvitePacket getInvite()
public boolean checkIfMyInvite()
public Connection getConnection()
None
- public java.lang.String getIP()
None
- public int getPort()
None
- public java.lang.Long getSeqNumber()
None
- public java.lang.Long getPeerSeqNumber()
None
- public void setIP(java.lang.String ip)
ip
- is the String representation of peer's IP addresspublic void setPort(int p)
p
- is the integer representation of peer's portpublic void setSeqNumber(java.lang.Long s)
s
- is the Long representation of the sequence numberpublic void setPeerSeqNumber(java.lang.Long s)
s
- is the Long representation of the sequence number being used by the peerpublic void setKeepAlive(cnrg.itx.signal.KeepAlive ka)
ks
- is the KeepAlive objectpublic cnrg.itx.signal.KeepAlive getKeepAlive()
public void setKeepAliveTime(int timeout)
timeout
- is the wait period in milli secondspublic void setPeerUID(UserID uid)
uid
- is the UserID object representing the peer's userID.public UserID getPeerUID()
public void setDialer(cnrg.itx.signal.DialThread d)
d
- is the instantiated DialThread objectpublic boolean isIdle()
public boolean isDialing()
public boolean isConnected()
public int getCurrentState()
public void setConnection(Connection c)
c
- is the Connection object to be usedpublic void setInvite(InvitePacket ip)
ip
- the InvitePacketpublic void setSourceInvite(boolean ifSource)
ifSource
- true if this DesktopSignaling created the InvitePacket; false otherwisepublic void startCall()
None.
- public void abortCall()
None.
- public void startKeepAlive(DesktopSignaling ds)
ds
- the handle to DesktopSignaling.public void open() throws DataException
cnrg.itx.datax.Connection.open()
public void close() throws DataException
cnrg.itx.datax.Connection.close()
public Channel getInputChannel()
cnrg.itx.datax.Connection.getInputChannel()
public Channel getOutputChannel()
cnrg.itx.datax.Connection.getOutputChannel()
public void setInputChannel(Channel c)
cnrg.itx.datax.Connection.setInputChannel(Channel c)
public void setOutputChannel(Channel c)
cnrg.itx.datax.Connection.setOutputChannel(Channel c)
public Stats getStatistics()
cnrg.itx.datax.Connection.getStatistics()
public PropertiesCollection getProperties()
cnrg.itx.datax.Connection.getProperties()
public void setProperties(PropertiesCollection pc)
cnrg.itx.datax.Connection.setProperties(PropertiesCollection pc)
public void setPeerProperties(PropertiesCollection pc) throws DataException
cnrg.itx.datax.Connection.setPeerProperties(PropertiesCollection pc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |