From 5a346c71bf5255eb769c9fceb34358c06e60aef3 Mon Sep 17 00:00:00 2001 From: mjm Date: Fri, 22 Nov 2002 23:39:26 +0000 Subject: ripped stuff from daemon and generalized it for libary usage --- (limited to 'noncore/net/wellenreiter/libwellenreiter/docs/quickintro') diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/quickintro b/noncore/net/wellenreiter/libwellenreiter/docs/quickintro new file mode 100644 index 0000000..e4978a1 --- a/dev/null +++ b/noncore/net/wellenreiter/libwellenreiter/docs/quickintro @@ -0,0 +1,35 @@ + +Name: libwellenreiter +Author: Martin J. Muench + +NOTE: This is just a very short summary of the functions included +in libwellenreiter, written because a lack of time. The whole +library will be rewritten with extended documentation and +test programs. + +Included functions: + +Log to syslog/info: +void wl_loginfo(const char *, ...); + +Log to syslog/err: +void wl_logerr(const char *, ...); + +Use like printf() function with format strings and so on. + + +Setup udp socket for incoming commands: +int commsock(const char *, int); + +Fist argument is the host where it should listen and second +is the port. + +Return values: + +Send command to udp socket: +int sendcomm(const char *, int, const char *, ...); + +First two arguments are the host and port where the command should +be send to, followed by buffer that should be send. + +Thats it for the moment. -- cgit v0.9.0.2