Difference between revisions of "Faq"

From reSIProcate
Jump to navigation Jump to search
(adding more questions)
Line 1: Line 1:
 
=== Nothing is happening, what's wrong? ===
 
=== Nothing is happening, what's wrong? ===
 
You must add transports.
 
You must add transports.
 +
 +
=== All I'm receiving is 503s, why? ===
 +
You must add transports.
 +
 +
=== How do I convert from a NameAddr or a URI to a data? ===
 +
You can use Data::from() on any class or object that supports operator << on a string. For example:
 +
 +
<pre><nowiki>NameAdder foo;
 +
Data d=Data::from(foo)</nowiki></pre>
  
 
=== Why does addTransport throw? ===
 
=== Why does addTransport throw? ===
Line 16: Line 25:
 
=== I told the stack to send a provisional response to a REGISTER and nothing happened.  What happened? ===
 
=== I told the stack to send a provisional response to a REGISTER and nothing happened.  What happened? ===
 
The stack not only thinks that's a bad idea, it corrects your behavior by dropping the response.
 
The stack not only thinks that's a bad idea, it corrects your behavior by dropping the response.
 +
 +
=== Are there any quirks about TCP behavior I should know about? ===
 +
If the stack acts as a UAS for a request received over TCP and the other side closes the connection before we respond, we will try to connect to other destination of that tuple, but if that fails, we won't open a new connection to send a response. No errors will be returned to the application.

Revision as of 15:12, 16 June 2005

Nothing is happening, what's wrong?

You must add transports.

All I'm receiving is 503s, why?

You must add transports.

How do I convert from a NameAddr or a URI to a data?

You can use Data::from() on any class or object that supports operator << on a string. For example:

NameAdder foo;
Data d=Data::from(foo)

Why does addTransport throw?

Sorry, the answer is not in my notes.

Can I remove transports?

No.

Why does dynamic_cast<MyContents*>(foo) return 0?

You have to include the contents header file in the file that has the main library (for example, #include “SdpContents.hxx”) otherwise dynamic casts will fail. There will be a body, but it won't have contents.

buildFdSet, select, process

Please rephrase as a question. Thanks.

I told the stack to send a provisional response to a REGISTER and nothing happened. What happened?

The stack not only thinks that's a bad idea, it corrects your behavior by dropping the response.

Are there any quirks about TCP behavior I should know about?

If the stack acts as a UAS for a request received over TCP and the other side closes the connection before we respond, we will try to connect to other destination of that tuple, but if that fails, we won't open a new connection to send a response. No errors will be returned to the application.