Functions | |
int | start_server (int argc, char **argv) |
The netpp server main loop. | |
void | init_properties (void) |
Initialize property tables (non C99 compilers only). | |
Variables | |
DeviceDesc | g_devices [] |
Device array in property list proplist.c. | |
int | g_ndevices |
Size of g_devices array, also instanced in proplist.c. |
void init_properties | ( | void | ) |
Somewhat stupid compilers like MSVC can't use designated initializers. So they need this workaround.
int start_server | ( | int | argc, | |
char ** | argv | |||
) |
This example serves USB, Devices and TCP simultaneously (if configured)
Note that several users can connect via network protocols such as TCP. Access and locking of resources must be sorted out on a property level.
The parameters are normally passed from the command line.
argc | Number of arguments passed from command line | |
argv | String array |