author | mickeyl <mickeyl> | 2003-03-30 01:51:14 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-30 01:51:14 (UTC) |
commit | d11a0154e2d9732854c9a3d598857bc20f359849 (patch) (side-by-side diff) | |
tree | af0e0273d01f4f6c64c9f230f22bb91a7a8a21d8 /noncore/net/wellenreiter/libwellenreiter/docs/quickintro | |
parent | 99899abc80a8aa05044eeecd8a061b0a8efaa713 (diff) | |
download | opie-d11a0154e2d9732854c9a3d598857bc20f359849.zip opie-d11a0154e2d9732854c9a3d598857bc20f359849.tar.gz opie-d11a0154e2d9732854c9a3d598857bc20f359849.tar.bz2 |
- the network work for libopie2 pays off...
- good bye to wellenreiterd, t'was fun but always too unstable and too hard to maintain
- good bye to libwellenreiter
Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/docs/quickintro') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/docs/quickintro | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/quickintro b/noncore/net/wellenreiter/libwellenreiter/docs/quickintro deleted file mode 100644 index 97458b7..0000000 --- a/noncore/net/wellenreiter/libwellenreiter/docs/quickintro +++ b/dev/null @@ -1,88 +0,0 @@ - -Name: libwellenreiter -Author: Martin J. Muench - -NOTE: This is just a very short summary of the functions included -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 *, ...); - -Log to syslog/err: -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); - -Fist argument is the host where it should listen and second -is the port. Socket is returned, on failure -1 is returned. - - -Recvfrom socket: -int recv_commsock(int *, char *, int); - -First argument is the address of the socket, second is a buffer -that should be filled in and the third is the maxlength of the -buffer. On error, -1 is returned, on success the number of -packet type is returned. (return value should be used with switch -command, for types see proto.hh) - -Send command to udp socket: -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. On error, -1 -is returned. - - ---- - -Thats it for the moment. - -mjm. |