summaryrefslogtreecommitdiff
path: root/noncore/net
authormjm <mjm>2002-11-24 21:20:56 (UTC)
committer mjm <mjm>2002-11-24 21:20:56 (UTC)
commit8383c1e7cb0aac098165c87fd4b969150010bfa7 (patch) (side-by-side diff)
tree8383bab5cd3d7cb247dce725e4248f6205955a91 /noncore/net
parent27e674a4a2c50a854e4ac228c2c500802566df86 (diff)
downloadopie-8383c1e7cb0aac098165c87fd4b969150010bfa7.zip
opie-8383c1e7cb0aac098165c87fd4b969150010bfa7.tar.gz
opie-8383c1e7cb0aac098165c87fd4b969150010bfa7.tar.bz2
added proto definitions
Diffstat (limited to 'noncore/net') (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
@@ -7,8 +7,47 @@ in libwellenreiter, written because a lack of time. The whole
library will be rewritten with extended documentation and
test programs.
+--
+Wellenreiter types:
+In proto.hh the following type (wl_network_t) is declared:
+
+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 Accesspoint */
+} wl_network_t;
+
+When a network is found, the structure has to be set and
+sent to the send_network_found() function.
+
+When the GUI receives a found network string it calls the
+get_network_found() function to get its own structure set.
+
+--
Included functions:
+--
+Protocol:
+
+Send a found network to GUI:
+int send_network_found (const char *, int, void *);
+
+The first two arguments are the guihost and the guiport.
+The third is the filled structure (wl_network_t), that will
+be send to the GUI.
+
+Setup structure for found network:
+int get_network_found (void *, const char *);
+
+When the GUI receives a new network found packet it calls
+this function and passes a wl_network_t structure and the
+received buffer. The function will strip the data from
+the buffer and set it to the structure.
+
+--
Log to syslog/info:
void wl_loginfo(const char *, ...);
@@ -17,7 +56,7 @@ void wl_logerr(const char *, ...);
Use like printf() function with format strings and so on.
-
+--
Setup udp socket for incoming commands:
int commsock(const char *, int);
@@ -32,4 +71,9 @@ int sendcomm(const char *, int, const char *, ...);
First two arguments are the host and port where the command should
be send to, followed by buffer that should be send.
+
+---
+
Thats it for the moment.
+
+mjm.