---
name: "ixp_respond"
section: "3"
platform: "linux"
package: "libixp-dev"
version: "0.6~20121202+hg148-5"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ixp_respond"
---

# ixp\_respond(3)

## NAME

ixp\_respond

## SYNOPSIS

```
#include <ixp.h>
void ixp_respond(Ixp9Req *req, const char *error);
```

## DESCRIPTION

Sends a response to the given request. The response is constructed from the *ofcall* member of the *req* parameter, or from the *error* parameter if it is non-null. In the latter case, the response is of type RError, while in any other case it is of the same type as *req*-\>*ofcall*, which must match the request type in *req*-\>*ifcall*.

## SEE ALSO

[Ixp9Req(3)](/Ixp9Req/3.md), [ixp\_printfcall(3)](/ixp_printfcall/3.md)
