Created
May 22, 2022 15:05
-
-
Save chebert/15feef00a81200ec6a8500db84b13492 to your computer and use it in GitHub Desktop.
RunPipeServer header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef RUN_PIPE_SERVER_H | |
#define RUN_PIPE_SERVER_H | |
#include <stdint.h> | |
#ifndef REQUEST_BUFFER_SIZE | |
#define REQUEST_BUFFER_SIZE (1024*1024*128) | |
#endif | |
#ifndef RESPONSE_BUFFER_SIZE | |
#define RESPONSE_BUFFER_SIZE (1024) | |
#endif | |
typedef uint8_t u1; | |
typedef uint16_t u2; | |
typedef uint32_t u4; | |
typedef uint64_t u8; | |
typedef int8_t s1; | |
typedef int16_t s2; | |
typedef int32_t s4; | |
typedef int64_t s8; | |
typedef s4 b4; | |
typedef const char *String; | |
typedef void *Pipe; | |
typedef void (*ClientRequestProcessor)( | |
u1 *request_buffer, u4 num_request_bytes, | |
u1 *response_buffer, u4 *num_bytes_written); | |
b4 RunPipeServer(String pipe_filename, ClientRequestProcessor); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment