HIPC
0.5
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
examples
led
server
main_posix.c
Go to the documentation of this file.
1
#include <unistd.h>
2
3
#include <errno.h>
4
#include <stdio.h>
5
6
#include <
hipc/posix/usoc.h
>
7
8
#include "CFGled.h"
9
#include "
hipcsvs_led.h
"
10
11
void
hipcsvsLedUpdate
(
struct
STRUprm *prm_p)
12
{
13
fprintf(stderr,
"led:%d\n"
, prm_p->led);
14
15
return
;
16
}
17
18
int
main
(
void
)
19
{
20
struct
HIPC_usoc
usoc;
21
22
hipcsvsLedInit
();
23
hipcPosixUsocInit
(&usoc, STDIN_FILENO, STDOUT_FILENO);
24
hipcMain
(&usoc);
25
26
if
(0 != errno) {
27
perror(
"Error message from perror()"
);
28
fprintf(stderr,
"errno: %d\n"
, errno);
29
}
30
fprintf(stderr,
"end\n"
);
31
32
return
0;
33
}
hipcsvsLedInit
void hipcsvsLedInit(void)
Definition:
hipcsvs_led.c:13
hipcsvs_led.h
hipcPosixUsocInit
void hipcPosixUsocInit(struct HIPC_usoc *so_p, const int fdr, const int fdw)
Initializes a universal socket.
Definition:
posix_usoc.c:14
main
int main(void)
Definition:
main_posix.c:18
usoc.h
HIPC_usoc
Definition:
usoc.h:4
hipcMain
void hipcMain(struct HIPC_usoc *const so_p)
Definition:
server.c:68
hipcsvsLedUpdate
void hipcsvsLedUpdate(struct STRUprm *prm_p)
Definition:
main_posix.c:11
Generated on Sat Jun 27 2015 09:23:13 for HIPC by
1.8.6