Program the control the fischertechnik robo interface or intelligent interface via tcp socket or via a java gui.

Dependencies:   mbed ConfigFile

Committer:
networker
Date:
Fri Dec 31 14:01:14 2010 +0000
Revision:
0:7f26f0680202
initial release: comprises ftlib (no usb), ft-over-ip socket server, and the http server (the html page and java jar I still have to publish somewhere)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
networker 0:7f26f0680202 1 /*****************************************************************************
networker 0:7f26f0680202 2 * auth.h - PPP Authentication and phase control header file.
networker 0:7f26f0680202 3 *
networker 0:7f26f0680202 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
networker 0:7f26f0680202 5 * portions Copyright (c) 1998 Global Election Systems Inc.
networker 0:7f26f0680202 6 *
networker 0:7f26f0680202 7 * The authors hereby grant permission to use, copy, modify, distribute,
networker 0:7f26f0680202 8 * and license this software and its documentation for any purpose, provided
networker 0:7f26f0680202 9 * that existing copyright notices are retained in all copies and that this
networker 0:7f26f0680202 10 * notice and the following disclaimer are included verbatim in any
networker 0:7f26f0680202 11 * distributions. No written agreement, license, or royalty fee is required
networker 0:7f26f0680202 12 * for any of the authorized uses.
networker 0:7f26f0680202 13 *
networker 0:7f26f0680202 14 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
networker 0:7f26f0680202 15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
networker 0:7f26f0680202 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
networker 0:7f26f0680202 17 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
networker 0:7f26f0680202 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
networker 0:7f26f0680202 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
networker 0:7f26f0680202 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
networker 0:7f26f0680202 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
networker 0:7f26f0680202 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
networker 0:7f26f0680202 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
networker 0:7f26f0680202 24 *
networker 0:7f26f0680202 25 ******************************************************************************
networker 0:7f26f0680202 26 * REVISION HISTORY
networker 0:7f26f0680202 27 *
networker 0:7f26f0680202 28 * 03-01-01 Marc Boucher <marc@mbsi.ca>
networker 0:7f26f0680202 29 * Ported to lwIP.
networker 0:7f26f0680202 30 * 97-12-04 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
networker 0:7f26f0680202 31 * Original derived from BSD pppd.h.
networker 0:7f26f0680202 32 *****************************************************************************/
networker 0:7f26f0680202 33 /*
networker 0:7f26f0680202 34 * pppd.h - PPP daemon global declarations.
networker 0:7f26f0680202 35 *
networker 0:7f26f0680202 36 * Copyright (c) 1989 Carnegie Mellon University.
networker 0:7f26f0680202 37 * All rights reserved.
networker 0:7f26f0680202 38 *
networker 0:7f26f0680202 39 * Redistribution and use in source and binary forms are permitted
networker 0:7f26f0680202 40 * provided that the above copyright notice and this paragraph are
networker 0:7f26f0680202 41 * duplicated in all such forms and that any documentation,
networker 0:7f26f0680202 42 * advertising materials, and other materials related to such
networker 0:7f26f0680202 43 * distribution and use acknowledge that the software was developed
networker 0:7f26f0680202 44 * by Carnegie Mellon University. The name of the
networker 0:7f26f0680202 45 * University may not be used to endorse or promote products derived
networker 0:7f26f0680202 46 * from this software without specific prior written permission.
networker 0:7f26f0680202 47 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
networker 0:7f26f0680202 48 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
networker 0:7f26f0680202 49 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
networker 0:7f26f0680202 50 *
networker 0:7f26f0680202 51 */
networker 0:7f26f0680202 52
networker 0:7f26f0680202 53 #ifndef AUTH_H
networker 0:7f26f0680202 54 #define AUTH_H
networker 0:7f26f0680202 55
networker 0:7f26f0680202 56 /***********************
networker 0:7f26f0680202 57 *** PUBLIC FUNCTIONS ***
networker 0:7f26f0680202 58 ***********************/
networker 0:7f26f0680202 59
networker 0:7f26f0680202 60 /* we are starting to use the link */
networker 0:7f26f0680202 61 void link_required (int);
networker 0:7f26f0680202 62
networker 0:7f26f0680202 63 /* we are finished with the link */
networker 0:7f26f0680202 64 void link_terminated (int);
networker 0:7f26f0680202 65
networker 0:7f26f0680202 66 /* the LCP layer has left the Opened state */
networker 0:7f26f0680202 67 void link_down (int);
networker 0:7f26f0680202 68
networker 0:7f26f0680202 69 /* the link is up; authenticate now */
networker 0:7f26f0680202 70 void link_established (int);
networker 0:7f26f0680202 71
networker 0:7f26f0680202 72 /* a network protocol has come up */
networker 0:7f26f0680202 73 void np_up (int, u16_t);
networker 0:7f26f0680202 74
networker 0:7f26f0680202 75 /* a network protocol has gone down */
networker 0:7f26f0680202 76 void np_down (int, u16_t);
networker 0:7f26f0680202 77
networker 0:7f26f0680202 78 /* a network protocol no longer needs link */
networker 0:7f26f0680202 79 void np_finished (int, u16_t);
networker 0:7f26f0680202 80
networker 0:7f26f0680202 81 /* peer failed to authenticate itself */
networker 0:7f26f0680202 82 void auth_peer_fail (int, u16_t);
networker 0:7f26f0680202 83
networker 0:7f26f0680202 84 /* peer successfully authenticated itself */
networker 0:7f26f0680202 85 void auth_peer_success (int, u16_t, char *, int);
networker 0:7f26f0680202 86
networker 0:7f26f0680202 87 /* we failed to authenticate ourselves */
networker 0:7f26f0680202 88 void auth_withpeer_fail (int, u16_t);
networker 0:7f26f0680202 89
networker 0:7f26f0680202 90 /* we successfully authenticated ourselves */
networker 0:7f26f0680202 91 void auth_withpeer_success (int, u16_t);
networker 0:7f26f0680202 92
networker 0:7f26f0680202 93 /* check authentication options supplied */
networker 0:7f26f0680202 94 void auth_check_options (void);
networker 0:7f26f0680202 95
networker 0:7f26f0680202 96 /* check what secrets we have */
networker 0:7f26f0680202 97 void auth_reset (int);
networker 0:7f26f0680202 98
networker 0:7f26f0680202 99 /* Check peer-supplied username/password */
networker 0:7f26f0680202 100 u_char check_passwd (int, char *, int, char *, int, char **, int *);
networker 0:7f26f0680202 101
networker 0:7f26f0680202 102 /* get "secret" for chap */
networker 0:7f26f0680202 103 int get_secret (int, char *, char *, char *, int *, int);
networker 0:7f26f0680202 104
networker 0:7f26f0680202 105 /* check if IP address is authorized */
networker 0:7f26f0680202 106 int auth_ip_addr (int, u32_t);
networker 0:7f26f0680202 107
networker 0:7f26f0680202 108 /* check if IP address is unreasonable */
networker 0:7f26f0680202 109 int bad_ip_adrs (u32_t);
networker 0:7f26f0680202 110
networker 0:7f26f0680202 111 #endif /* AUTH_H */