author | mjm <mjm> | 2002-12-31 12:37:43 (UTC) |
---|---|---|
committer | mjm <mjm> | 2002-12-31 12:37:43 (UTC) |
commit | 44a0af99df02feb01c9879506e4d34d96afe046b (patch) (unidiff) | |
tree | c4dba77fedbb96a313a4e65d30b89d3e7b9ceac4 /noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 | |
parent | d331ca1cf11e8f525665a1e5cb10f491d47c19e8 (diff) | |
download | opie-44a0af99df02feb01c9879506e4d34d96afe046b.zip opie-44a0af99df02feb01c9879506e4d34d96afe046b.tar.gz opie-44a0af99df02feb01c9879506e4d34d96afe046b.tar.bz2 |
smaller updates (sockaddr_in structures,...)
added short info for wl_types.hh
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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 index ebecd82..62e935b 100644 --- a/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 +++ b/noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 | |||
@@ -2,9 +2,9 @@ wl_sock | |||
2 | 2 | ||
3 | #include <wellenreiter/wl_sock.hh> | 3 | #include <wellenreiter/wl_sock.hh> |
4 | 4 | ||
5 | int wl_setupsock(const char *host, int port) | 5 | int wl_setupsock(const char *host, int port, struct sockaddr_in *) |
6 | int wl_send(const char *host, int port, const char *string, ...) | 6 | int wl_send(const char *host, int port, const char *string, ...) |
7 | int wl_recv(int *socket, char *out, int len) | 7 | int wl_recv(int *socket, struct sockaddr_in *, char *out, int len) |
8 | 8 | ||
9 | 9 | ||
10 | wl_setupsock() returns the number of the activated udp socket. | 10 | wl_setupsock() returns the number of the activated udp socket. |
@@ -18,7 +18,9 @@ maxlen of len. | |||
18 | 18 | ||
19 | wl_setupsock() returns -1 on error and the number of socket on | 19 | wl_setupsock() returns -1 on error and the number of socket on |
20 | success. | 20 | success. |
21 | wl_send() returns -1 on error and 0 on success. | 21 | wl_send() returns 0 on error and 1 on success. |
22 | wl_recv() returns -1 on error and the type of the received packet | 22 | wl_recv() returns -1 on error and the type of the received packet |
23 | on success. | 23 | on success. |
24 | 24 | ||
25 | Note: To use this function you have to set a sockaddr_in structure | ||
26 | and pass it to wl_setupsock and wl_receive. | ||