mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
There's no reason to do this async, and far easier to follow using normal read/write. The previous parsing was deeply questionable, using substring searches only, and relying on the fact that a single non-blocking read would get the entire response. This is changed to do (somewhat) proper parsing using ccan/rbuf. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 lines
313 B
C
12 lines
313 B
C
#ifndef LIGHTNING_LIGHTNINGD_TOR_H
|
|
#define LIGHTNING_LIGHTNINGD_TOR_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
#include <lightningd/lightningd.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
|
|
void tor_init(struct lightningd *ld);
|
|
#endif /* LIGHTNING_LIGHTNINGD_TOR_H */
|