2017-02-10 01:10:21 +00:00
|
|
|
#ifndef DAEMON_H
|
2017-03-19 12:47:19 +00:00
|
|
|
#define DAEMON_H
|
2017-02-10 01:10:21 +00:00
|
|
|
|
2017-03-19 12:47:19 +00:00
|
|
|
#include <stdint.h>
|
2017-03-30 18:59:31 +00:00
|
|
|
#include "ipfs/core/ipfs_node.h"
|
2017-02-10 01:10:21 +00:00
|
|
|
|
2017-03-19 12:47:19 +00:00
|
|
|
#define MAX 5
|
|
|
|
#define CONNECTIONS 50
|
2017-02-10 01:10:21 +00:00
|
|
|
|
2017-03-19 12:47:19 +00:00
|
|
|
struct null_connection_params {
|
2017-04-04 01:54:03 +00:00
|
|
|
int file_descriptor;
|
2017-03-19 12:47:19 +00:00
|
|
|
int *count;
|
2017-04-04 01:54:03 +00:00
|
|
|
char* ip;
|
|
|
|
int port;
|
2017-03-19 12:47:19 +00:00
|
|
|
struct IpfsNode* local_node;
|
|
|
|
};
|
2017-02-10 01:10:21 +00:00
|
|
|
|
2017-03-19 12:47:19 +00:00
|
|
|
struct null_listen_params {
|
|
|
|
uint32_t ipv4;
|
|
|
|
uint16_t port;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct IpfsNodeListenParams {
|
|
|
|
uint32_t ipv4;
|
|
|
|
uint16_t port;
|
|
|
|
struct IpfsNode* local_node;
|
|
|
|
};
|
|
|
|
|
|
|
|
int ipfs_daemon (int argc, char **argv);
|
|
|
|
int ipfs_daemon_start(char* repo_path);
|
2017-04-17 16:58:47 +00:00
|
|
|
int ipfs_daemon_stop();
|
2017-03-19 12:47:19 +00:00
|
|
|
int ipfs_ping (int argc, char **argv);
|
2017-02-22 15:56:11 +00:00
|
|
|
|
2017-02-10 01:10:21 +00:00
|
|
|
#endif // DAEMON_H
|