summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8
Unidiff
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.826
1 files changed, 0 insertions, 26 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8
deleted file mode 100644
index 62e935b..0000000
--- a/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8
+++ b/dev/null
@@ -1,26 +0,0 @@
1wl_sock
2
3#include <wellenreiter/wl_sock.hh>
4
5int wl_setupsock(const char *host, int port, struct sockaddr_in *)
6int wl_send(const char *host, int port, const char *string, ...)
7int wl_recv(int *socket, struct sockaddr_in *, char *out, int len)
8
9
10wl_setupsock() returns the number of the activated udp socket.
11
12wl_send() sends string to the given host.
13
14wl_recv() checks for incoming data on a socket (created using
15wl_setupsock()). It writes the incoming data to out with a
16maxlen of len.
17
18
19wl_setupsock() returns -1 on error and the number of socket on
20success.
21wl_send() returns 0 on error and 1 on success.
22wl_recv() returns -1 on error and the type of the received packet
23on success.
24
25Note: To use this function you have to set a sockaddr_in structure
26and pass it to wl_setupsock and wl_receive.