author | mjm <mjm> | 2002-12-31 12:37:43 (UTC) |
---|---|---|
committer | mjm <mjm> | 2002-12-31 12:37:43 (UTC) |
commit | 44a0af99df02feb01c9879506e4d34d96afe046b (patch) (side-by-side diff) | |
tree | c4dba77fedbb96a313a4e65d30b89d3e7b9ceac4 /noncore | |
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
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/docs/wl_sock.8 | 8 | ||||
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/docs/wl_types.8 | 25 |
2 files changed, 30 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 #include <wellenreiter/wl_sock.hh> -int wl_setupsock(const char *host, int port) +int wl_setupsock(const char *host, int port, struct sockaddr_in *) int wl_send(const char *host, int port, const char *string, ...) -int wl_recv(int *socket, char *out, int len) +int wl_recv(int *socket, struct sockaddr_in *, char *out, int len) wl_setupsock() returns the number of the activated udp socket. @@ -18,7 +18,9 @@ maxlen of len. wl_setupsock() returns -1 on error and the number of socket on success. -wl_send() returns -1 on error and 0 on success. +wl_send() returns 0 on error and 1 on success. wl_recv() returns -1 on error and the type of the received packet on success. +Note: To use this function you have to set a sockaddr_in structure +and pass it to wl_setupsock and wl_receive. diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/wl_types.8 b/noncore/net/wellenreiter/libwellenreiter/docs/wl_types.8 new file mode 100644 index 0000000..d12f564 --- a/dev/null +++ b/noncore/net/wellenreiter/libwellenreiter/docs/wl_types.8 @@ -0,0 +1,25 @@ +wl_types.hh + +wl_types.hh contains the global buffers and type definitions. + +At the moment these are: + +/* Type definitions, to be continued */ +#define WL_NETFOUND 01 +#define WL_NETLOST 02 +#define WL_STARTSNIFF 98 +#define WL_STOPSNIFF 99 + +#define WL_SOCKBUF 512 /* Buffer for wl_send and wl_recv calls */ + +/* WL network structure */ +typedef struct { + int net_type; /* 1 = Accesspoint ; 2 = Ad-Hoc */ + int ssid_len; /* Length of SSID */ + int channel; /* Channel */ + int wep; /* 1 = WEP enabled ; 0 = disabled */ + char mac[64]; /* MAC address of Accesspoint */ + char bssid[128]; /* BSSID of Net */ +} wl_network_t; + +Will be filled up with other structs and size definitions asap. |