summaryrefslogtreecommitdiff
authormjm <mjm>2002-11-24 21:20:56 (UTC)
committer mjm <mjm>2002-11-24 21:20:56 (UTC)
commit8383c1e7cb0aac098165c87fd4b969150010bfa7 (patch) (unidiff)
tree8383bab5cd3d7cb247dce725e4248f6205955a91
parent27e674a4a2c50a854e4ac228c2c500802566df86 (diff)
downloadopie-8383c1e7cb0aac098165c87fd4b969150010bfa7.zip
opie-8383c1e7cb0aac098165c87fd4b969150010bfa7.tar.gz
opie-8383c1e7cb0aac098165c87fd4b969150010bfa7.tar.bz2
added proto definitions
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/docs/quickintro46
1 files changed, 45 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/quickintro b/noncore/net/wellenreiter/libwellenreiter/docs/quickintro
index e4978a1..a027a4e 100644
--- a/noncore/net/wellenreiter/libwellenreiter/docs/quickintro
+++ b/noncore/net/wellenreiter/libwellenreiter/docs/quickintro
@@ -9,4 +9,43 @@ test programs.
9 9
10--
11Wellenreiter types:
12In proto.hh the following type (wl_network_t) is declared:
13
14typedef struct {
15 int net_type; /* 1 = Accesspoint ; 2 = Ad-Hoc */
16 int ssid_len; /* Length of SSID */
17 int channel; /* Channel */
18 int wep; /* 1 = WEP enabled ; 0 = disabled */
19 char mac[64]; /* MAC address of Accesspoint */
20 char bssid[128]; /* BSSID of Accesspoint */
21} wl_network_t;
22
23When a network is found, the structure has to be set and
24sent to the send_network_found() function.
25
26When the GUI receives a found network string it calls the
27get_network_found() function to get its own structure set.
28
29--
10Included functions: 30Included functions:
11 31
32--
33Protocol:
34
35Send a found network to GUI:
36int send_network_found (const char *, int, void *);
37
38The first two arguments are the guihost and the guiport.
39The third is the filled structure (wl_network_t), that will
40be send to the GUI.
41
42Setup structure for found network:
43int get_network_found (void *, const char *);
44
45When the GUI receives a new network found packet it calls
46this function and passes a wl_network_t structure and the
47received buffer. The function will strip the data from
48the buffer and set it to the structure.
49
50--
12Log to syslog/info: 51Log to syslog/info:
@@ -19,3 +58,3 @@ Use like printf() function with format strings and so on.
19 58
20 59--
21Setup udp socket for incoming commands: 60Setup udp socket for incoming commands:
@@ -34,2 +73,7 @@ be send to, followed by buffer that should be send.
34 73
74
75---
76
35Thats it for the moment. 77Thats it for the moment.
78
79mjm.