summaryrefslogtreecommitdiff
path: root/src/query.h
blob: 2a58e253dd93c0c6ccae209daa61657a5b4e9279 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include "routing.h"

#include <stdint.h>
#include <sys/socket.h>

#define QUERY_EBADQ 1
#define QUERY_EUNK  2

int handle_request(struct nodeid* self, const char* method, const struct sockaddr* src, socklen_t src_len, const char* packet, size_t packet_len, char** response, size_t response_len);