Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 new file mode 100644 index 0000000..ebecd82 --- a/dev/null +++ b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 | |||
@@ -0,0 +1,24 @@ | |||
1 | wl_sock | ||
2 | |||
3 | #include <wellenreiter/wl_sock.hh> | ||
4 | |||
5 | int wl_setupsock(const char *host, int port) | ||
6 | int wl_send(const char *host, int port, const char *string, ...) | ||
7 | int wl_recv(int *socket, char *out, int len) | ||
8 | |||
9 | |||
10 | wl_setupsock() returns the number of the activated udp socket. | ||
11 | |||
12 | wl_send() sends string to the given host. | ||
13 | |||
14 | wl_recv() checks for incoming data on a socket (created using | ||
15 | wl_setupsock()). It writes the incoming data to out with a | ||
16 | maxlen of len. | ||
17 | |||
18 | |||
19 | wl_setupsock() returns -1 on error and the number of socket on | ||
20 | success. | ||
21 | wl_send() returns -1 on error and 0 on success. | ||
22 | wl_recv() returns -1 on error and the type of the received packet | ||
23 | on success. | ||
24 | |||