2017-02-10 01:10:21 +00:00
|
|
|
#ifndef DAEMON_H
|
|
|
|
#define DAEMON_H
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define MAX 5
|
|
|
|
#define CONNECTIONS 50
|
|
|
|
|
|
|
|
struct null_connection_params {
|
|
|
|
int socket;
|
|
|
|
int *count;
|
2017-02-22 16:48:42 +00:00
|
|
|
struct IpfsNode* local_node;
|
2017-02-10 01:10:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct null_listen_params {
|
|
|
|
uint32_t ipv4;
|
|
|
|
uint16_t port;
|
|
|
|
};
|
|
|
|
|
2017-02-22 15:56:11 +00:00
|
|
|
struct IpfsNodeListenParams {
|
|
|
|
uint32_t ipv4;
|
|
|
|
uint16_t port;
|
|
|
|
struct IpfsNode* local_node;
|
|
|
|
};
|
|
|
|
|
2017-02-10 01:10:21 +00:00
|
|
|
void *ipfs_null_connection (void *ptr);
|
|
|
|
void *ipfs_null_listen (void *ptr);
|
|
|
|
int ipfs_daemon (int argc, char **argv);
|
2017-02-27 17:27:40 +00:00
|
|
|
int ipfs_daemon_start(char* repo_path);
|
2017-02-10 02:53:58 +00:00
|
|
|
int ipfs_ping (int argc, char **argv);
|
2017-02-10 01:10:21 +00:00
|
|
|
#endif // DAEMON_H
|