-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcallbacks.c
More file actions
51 lines (40 loc) · 1.36 KB
/
Copy pathcallbacks.c
File metadata and controls
51 lines (40 loc) · 1.36 KB
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
42
43
44
45
46
47
48
49
/* ------------------------------------------------------------- */
/* Program . . . : Node.RPG - main interface */
/* Date . . . . : 02.06.2018 */
/* Design . . . : Niels Liisberg */
/* Function . . : Main Socket server */
/* */
/* By Date PTF Description */
/* NL 02.06.2018 New program */
/* ------------------------------------------------------------- */
#define _MULTI_THREADED
// max number of concurrent users
#define FD_SETSIZE 4096
#include <os2.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <decimal.h>
#include <fcntl.h>
/* in qsysinc library */
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <ssl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <unistd.h>
#include <spawn.h>
#include "ostypes.h"
#include "sysdef.h"
#include "strUtil.h"
#include "varchar.h"
/* --------------------------------------------------------------------------- */
void node_write (PRESPONSE pResponse, PVARCHAR buf)
{
putHeader (pResponse);
putChunk (pResponse, buf->String, buf->Length);
}