|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MsConnection
Represents the actual RTP connection. MsConnection is created as shown below
MsSession msSession;
....
MsConnection msConnection = msSession.createNetworkConnection("media/trunk/Announcement/$")
At this stage MsConnection is in IDLE state and
CONNECTION_CREATED event is fired.
Through out the lifetime of MsConnection, it maintains the
reference to MsSession
| Method Summary | |
|---|---|
void |
addConnectionListener(MsConnectionListener listener)
Adds connection listener. |
void |
addNotificationListener(MsNotificationListener listener)
|
MsEndpoint |
getEndpoint()
Returns the concrete endpoint which executes this connection. |
java.lang.String |
getId()
Retrieves the MsConnection ID, basically a UUID |
java.lang.String |
getLocalDescriptor()
Gets the session descriptor of the local end. |
java.lang.String |
getRemoteDescriptor()
Gets the session descriptor of the remote end. |
MsSession |
getSession()
Retrieves the MsSession that is associated with this
MsConnection. |
MsConnectionState |
getState()
Returns the state of MsConnection |
void |
modify(java.lang.String localDesc,
java.lang.String remoteDesc)
Creates or modify network connection on the media server side. |
void |
release()
Deletes related connection from media server. |
void |
removeConnectionListener(MsConnectionListener listener)
Removes connection listener. |
void |
removeNotificationListener(MsNotificationListener listener)
|
| Method Detail |
|---|
java.lang.String getId()
MsConnectionMsSession getSession()
MsSession that is associated with this
MsConnection. This MsSession reference
remains valid throughout the lifetime of the MsConnection
object despite the state of the MsConnection object. This
MsSession reference does not change once the
MsConnection object has been created.
MsConnectionState getState()
MsConnection
MsConnectionState representing the state of
MsConnectionjava.lang.String getLocalDescriptor()
java.lang.String getRemoteDescriptor()
MsEndpoint getEndpoint()
void addConnectionListener(MsConnectionListener listener)
listener - the listener object.void removeConnectionListener(MsConnectionListener listener)
listener - the listener object was added previously.void addNotificationListener(MsNotificationListener listener)
void removeNotificationListener(MsNotificationListener listener)
void modify(java.lang.String localDesc,
java.lang.String remoteDesc)
remoteDesc - the session desriptor of the remote party.void release()
MsSession becomes INVALID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||