|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
| Field Summary | |
|---|---|
static int |
CHANNEL_RX
|
static int |
CHANNEL_TX
|
| Method Summary | |
|---|---|
void |
addListener(ConnectionListener listener)
Adds connection state listener. |
void |
addNotificationListener(NotificationListener listener)
|
Component |
getComponent(MediaType type,
java.lang.Class _interface)
|
Endpoint |
getEndpoint()
Gets the endpoint which executes this connection. |
java.lang.String |
getId()
Gets the identifier of this connection. |
int |
getLifeTime()
Gets the time to live of the connection. |
java.lang.String |
getLocalDescriptor()
Gets the local descriptor of the connection. |
ConnectionMode |
getMode(MediaType mediaType)
Gets the current mode of this connection. |
long |
getPacketsReceived(MediaType media)
|
long |
getPacketsTransmitted(MediaType media)
|
java.lang.String |
getRemoteDescriptor()
Gets the descriptor of the remote party. |
ConnectionState |
getState()
Returns state of this connection |
void |
removeListener(ConnectionListener listener)
Removes connection state listener. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
setLifeTime(int lifeTime)
Modify life time of the connection. |
void |
setMode(ConnectionMode mode)
Modify mode of this connection for all known media types. |
void |
setMode(ConnectionMode mode,
MediaType mediaType)
Modify mode of this connection. |
void |
setOtherParty(Connection other)
Joins localy this and other connections. |
void |
setOtherParty(Connection other,
MediaType mediaType)
|
void |
setOtherParty(java.lang.String media,
java.net.InetSocketAddress address)
|
void |
setRemoteDescriptor(java.lang.String descriptor)
Modify the descriptor of the remote party. |
| Field Detail |
|---|
static final int CHANNEL_RX
static final int CHANNEL_TX
| Method Detail |
|---|
java.lang.String getId()
ConnectionState getState()
int getLifeTime()
void setLifeTime(int lifeTime)
lifeTime - the time value in seconds.ConnectionMode getMode(MediaType mediaType)
void setMode(ConnectionMode mode,
MediaType mediaType)
mode - the new value of the mode.void setMode(ConnectionMode mode)
mode - the new mode of the connection.Endpoint getEndpoint()
java.lang.String getLocalDescriptor()
java.lang.String getRemoteDescriptor()
void setRemoteDescriptor(java.lang.String descriptor)
throws javax.sdp.SdpException,
java.io.IOException,
ResourceUnavailableException
remoteDescriptor - the SDP descriptor of the remote party.
ResourceUnavailableException
javax.sdp.SdpException
java.io.IOException
void setOtherParty(Connection other)
throws java.io.IOException
other - the other connectio to join with.
java.lang.InterruptedException
java.io.IOException
void setOtherParty(Connection other,
MediaType mediaType)
throws java.io.IOException
java.io.IOException
void setOtherParty(java.lang.String media,
java.net.InetSocketAddress address)
throws java.io.IOException
java.io.IOExceptionvoid addListener(ConnectionListener listener)
listener - to be registeredvoid addNotificationListener(NotificationListener listener)
void removeListener(ConnectionListener listener)
listener - to be unregisteredvoid removeNotificationListener(NotificationListener listener)
Component getComponent(MediaType type,
java.lang.Class _interface)
long getPacketsReceived(MediaType media)
long getPacketsTransmitted(MediaType media)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||