|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SipTcpTransportLayer
Interface for calls to the TCP transport layer, as specified in section 18 of RFC 3261, starting on page 141.
| Method Summary | |
|---|---|
void |
addConnection(org.littleshoot.mina.common.IoSession io)
Adds a mapping between the remote host for the connection and the class for reading and writing data from and to that host. |
boolean |
hasConnectionForAny(Collection<InetSocketAddress> socketAddresses)
Checks whether or not the transport layer has a connection to any of the specified socket addresses. |
SipClientTransaction |
invite(Invite message,
org.littleshoot.mina.common.IoSession io,
org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener listener)
Writes a message that is a part of a transaction. |
SipClientTransaction |
register(Register message,
org.littleshoot.mina.common.IoSession io,
org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener listener)
Writes a REGISTER request that is a part of a transaction. |
void |
removeConnection(org.littleshoot.mina.common.IoSession session)
Removes this connection. |
org.littleshoot.mina.common.WriteFuture |
writeCrlfKeepAlive(org.littleshoot.mina.common.IoSession io)
Writes a CRLF keep-alive message to the given reader/writer, as specified in the SIP outbound drafts. |
void |
writeRequest(Collection<InetSocketAddress> socketAddresses,
Invite request)
Writes the specified request to the first address in the collection we have a connection for. |
void |
writeRequestStatelessly(Invite request,
org.littleshoot.mina.common.IoSession io)
Writes the specified request without creating a transaction. |
boolean |
writeResponse(InetSocketAddress socketAddress,
SipResponse response)
Writes the specified response message to the connection associated with the specified address. |
void |
writeResponse(SipResponse response)
Writes a response using the routing information in the topmost Via header. |
| Method Detail |
|---|
void addConnection(org.littleshoot.mina.common.IoSession io)
io - The connection to the host.
SipClientTransaction register(Register message,
org.littleshoot.mina.common.IoSession io,
org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener listener)
message - The SIP message we're sending.io - The class for writing the message.listener - Class that listens for transaction events.
SipClientTransaction invite(Invite message,
org.littleshoot.mina.common.IoSession io,
org.lastbamboo.common.offer.answer.OfferAnswerTransactionListener listener)
message - The SIP message we're sending.io - The class for writing the message.listener - Class that listens for transaction events.
void writeRequestStatelessly(Invite request,
org.littleshoot.mina.common.IoSession io)
request - The SIP request to write.io - The class that will write hte message.
boolean writeResponse(InetSocketAddress socketAddress,
SipResponse response)
socketAddress - The address and port remote of the client to send
the response to.response - The response to send.
true of we successfull processed the
response and passed it to the network for transport, otherwise
false.
void writeResponse(SipResponse response)
throws IOException
response - The response to write.
IOException - If we could not route the response for any reason.boolean hasConnectionForAny(Collection<InetSocketAddress> socketAddresses)
socketAddresses - The collection of socket addresses to look for.
true if there is a connection to any of the
specified addresses, otherwise false.
void writeRequest(Collection<InetSocketAddress> socketAddresses,
Invite request)
socketAddresses - The socket addresses to attempt to send a
message to.request - The request to send.org.littleshoot.mina.common.WriteFuture writeCrlfKeepAlive(org.littleshoot.mina.common.IoSession io)
io - The reader/writer to write the messages over.
void removeConnection(org.littleshoot.mina.common.IoSession session)
session - The connection to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||