c-ipfs/include/ipfs/core/daemon.h

35 lines
574 B
C
Raw Normal View History

2017-02-09 22:10:21 -03:00
#ifndef DAEMON_H
#define DAEMON_H
2017-02-09 22:10:21 -03:00
#include <stdint.h>
2017-03-30 13:59:31 -05:00
#include "ipfs/core/ipfs_node.h"
2017-02-09 22:10:21 -03:00
#define MAX 5
#define CONNECTIONS 50
2017-02-09 22:10:21 -03:00
struct null_connection_params {
2017-04-03 20:54:03 -05:00
int file_descriptor;
int *count;
2017-04-03 20:54:03 -05:00
char* ip;
int port;
struct IpfsNode* local_node;
};
2017-02-09 22:10:21 -03: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);
int ipfs_daemon_stop();
int ipfs_ping (int argc, char **argv);
2017-02-09 22:10:21 -03:00
#endif // DAEMON_H