author | mjm <mjm> | 2002-11-22 23:39:26 (UTC) |
---|---|---|
committer | mjm <mjm> | 2002-11-22 23:39:26 (UTC) |
commit | 5a346c71bf5255eb769c9fceb34358c06e60aef3 (patch) (unidiff) | |
tree | 6d600718317d56c411c2d91259e73780a99be60d /noncore/net/wellenreiter/libwellenreiter/docs/quickintro | |
parent | a71b9d79a05ab2b6bc891afe4df4d5fdcf641550 (diff) | |
download | opie-5a346c71bf5255eb769c9fceb34358c06e60aef3.zip opie-5a346c71bf5255eb769c9fceb34358c06e60aef3.tar.gz opie-5a346c71bf5255eb769c9fceb34358c06e60aef3.tar.bz2 |
ripped stuff from daemon and generalized it for libary usage
Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/docs/quickintro') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/docs/quickintro | 35 |
1 files changed, 35 insertions, 0 deletions
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 @@ | |||
1 | |||
2 | Name: libwellenreiter | ||
3 | Author: Martin J. Muench | ||
4 | |||
5 | NOTE: This is just a very short summary of the functions included | ||
6 | in libwellenreiter, written because a lack of time. The whole | ||
7 | library will be rewritten with extended documentation and | ||
8 | test programs. | ||
9 | |||
10 | Included functions: | ||
11 | |||
12 | Log to syslog/info: | ||
13 | void wl_loginfo(const char *, ...); | ||
14 | |||
15 | Log to syslog/err: | ||
16 | void wl_logerr(const char *, ...); | ||
17 | |||
18 | Use like printf() function with format strings and so on. | ||
19 | |||
20 | |||
21 | Setup udp socket for incoming commands: | ||
22 | int commsock(const char *, int); | ||
23 | |||
24 | Fist argument is the host where it should listen and second | ||
25 | is the port. | ||
26 | |||
27 | Return values: | ||
28 | |||
29 | Send command to udp socket: | ||
30 | int sendcomm(const char *, int, const char *, ...); | ||
31 | |||
32 | First two arguments are the host and port where the command should | ||
33 | be send to, followed by buffer that should be send. | ||
34 | |||
35 | Thats it for the moment. | ||