Home | Trees | Index | Help |
|
---|
Package twisted :: Package protocols :: Module sip :: Class Proxy |
|
AbstractDatagramProtocol
--+ |DatagramProtocol
--+ |Base
--+ | Proxy
RegisterProxy
Method Summary | |
---|---|
Create new instance. | |
_cantForwardRequest(self,
error,
message)
| |
Deliver response. | |
Return value of Via header for this proxy. | |
Called with responses that are addressed at this server. | |
Override to define behavior for requests received | |
Default request handler. | |
Default response handler. | |
Create a response to a request message. | |
Inherited from Base | |
| |
| |
| |
Send a message. | |
Inherited from AbstractDatagramProtocol | |
| |
Make sure startProtocol is called. | |
Make sure stopProtocol is called. | |
Make a connection to a transport and a server. | |
Called when a transport is connected to this protocol. | |
Called when the transport is disconnected. |
Class Variable Summary | |
---|---|
NoneType |
locator = None |
int |
PORT = 5060 |
Inherited from Base | |
int |
debug = 0 |
Inherited from AbstractDatagramProtocol | |
str |
noisy = 'sure, why not'
|
int |
numPorts = 0 |
NoneType |
transport = None |
Method Details |
---|
__init__(self,
host=None,
port=5060)
Create new instance.
|
deliverResponse(self, responseMessage)Deliver response. Destination is based on topmost Via header.
|
getVia(self)Return value of Via header for this proxy. |
gotResponse(self, message, addr)Called with responses that are addressed at this server. |
handle_request(self, message, addr)Override to define behavior for requests received
|
handle_request_default(self, message, (srcHost, srcPort))Default request handler. Default behaviour for OPTIONS and unknown methods for proxies is to forward message on to the client. Since at the moment we are stateless proxy, thats basically everything. |
handle_response(self, message, addr)Default response handler.
|
responseFromRequest(self, code, request)Create a response to a request message. |
Class Variable Details |
---|
locator
|
PORT
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Dec 9 17:48:16 2003 | http://epydoc.sf.net |