| 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 | |
| 8 | namespace fanos { | 
| 9 | |
| 10 | void 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. | 
| 14 | BigStr* recv(int sock_fd, List<int>* fd_out); | 
| 15 | |
| 16 | } // namespace fanos | 
| 17 | |
| 18 | #endif // FANOS_H |