-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathremote.h
41 lines (35 loc) · 1.11 KB
/
remote.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef REMOTE_H
#define REMOTE_H
// ****************************************************************************
// remote.h ELFE project
// ****************************************************************************
//
// File Description:
//
// The interface for a simple socket-based transport of ELFE programs
//
//
//
//
//
//
//
//
// ****************************************************************************
// (C) 2015 Christophe de Dinechin <[email protected]>
// (C) 2015 Taodyne SAS
// ****************************************************************************
#include "base.h"
#include "tree.h"
#include "context.h"
ELFE_BEGIN
const uint ELFE_DEFAULT_PORT = 1205;
int elfe_tell(Context *, text host, Tree *body);
Tree_p elfe_ask(Context *, text host, Tree *body);
Tree_p elfe_invoke(Context *, text host, Tree *body);
int elfe_reply(Context *, Tree *body);
Tree_p elfe_listen_received();
Tree_p elfe_listen_hook(Tree *body);
int elfe_listen(Context *, uint forking, uint port = ELFE_DEFAULT_PORT);
ELFE_END
#endif // REMOTE_H