OILS / cpp / fanos.h View on Github | oilshell.org

18 lines, 7 significant
1#ifndef FANOS_H
2#define FANOS_H
3
4// C++ interface for FANOS protocol. A wrapper around cpp/fanos_shared.h
5
6#include "mycpp/runtime.h"
7
8namespace fanos {
9
10void send(int sock_fd, BigStr* blob);
11
12// Returns the decoded netstring payload and file descriptors. The payload is
13// nullptr (Python None) on EOF.
14BigStr* recv(int sock_fd, List<int>* fd_out);
15
16} // namespace fanos
17
18#endif // FANOS_H