org.mobicents.protocols.api
public interface Association
A protocol relationship between endpoints
The implementation of this interface is actual wrapper over Socket that know's how to communicate with peer. The user of Association shouldn't care if the underlying Socket is client or server side
| Modifier and Type | Method and Description |
|---|---|
AssociationListener |
getAssociationListener()
The AssociationListener set for this Association
|
java.lang.String |
getHostAddress()
The host address that underlying socket is bound to
|
int |
getHostPort()
The host port that underlying socket is bound to
|
java.lang.String |
getName()
Each association has unique name
|
java.lang.String |
getPeerAddress()
The peer address that the underlying socket connects to
|
int |
getPeerPort()
The peer port that the underlying socket is connected to
|
java.lang.String |
getServerName()
Server name if the association is for
Server |
boolean |
isStarted()
If this association is started by management
|
void |
send(PayloadData payloadData)
Send the
PayloadData to the peer |
void |
setAssociationListener(AssociationListener associationListener)
The
AssociationListener to be registered for this Association |
java.lang.String getName()
boolean isStarted()
AssociationListener getAssociationListener()
void setAssociationListener(AssociationListener associationListener)
AssociationListener to be registered for this AssociationassociationListener - java.lang.String getHostAddress()
int getHostPort()
java.lang.String getPeerAddress()
int getPeerPort()
java.lang.String getServerName()
Servervoid send(PayloadData payloadData) throws java.lang.Exception
PayloadData to the peerpayloadData - java.lang.ExceptionCopyright © 2012. All Rights Reserved.