Initial implementation of core/daemon.
This commit is contained in:
parent
cd09930077
commit
de6c4b2495
6 changed files with 132 additions and 2 deletions
21
include/ipfs/core/daemon.h
Normal file
21
include/ipfs/core/daemon.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef DAEMON_H
|
||||
#define DAEMON_H
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAX 5
|
||||
#define CONNECTIONS 50
|
||||
|
||||
struct null_connection_params {
|
||||
int socket;
|
||||
int *count;
|
||||
};
|
||||
|
||||
struct null_listen_params {
|
||||
uint32_t ipv4;
|
||||
uint16_t port;
|
||||
};
|
||||
|
||||
void *ipfs_null_connection (void *ptr);
|
||||
void *ipfs_null_listen (void *ptr);
|
||||
int ipfs_daemon (int argc, char **argv);
|
||||
#endif // DAEMON_H
|
Loading…
Add table
Add a link
Reference in a new issue