telnetd.h

Go to the documentation of this file.
00001 
00021 /*
00022  * Copyright (c) 2003, Adam Dunkels.
00023  * All rights reserved.
00024  *
00025  * Redistribution and use in source and binary forms, with or without
00026  * modification, are permitted provided that the following conditions
00027  * are met:
00028  * 1. Redistributions of source code must retain the above copyright
00029  *    notice, this list of conditions and the following disclaimer.
00030  * 2. Redistributions in binary form must reproduce the above
00031  *    copyright notice, this list of conditions and the following
00032  *    disclaimer in the documentation and/or other materials provided
00033  *    with the distribution.
00034  * 3. The name of the author may not be used to endorse or promote
00035  *    products derived from this software without specific prior
00036  *    written permission.
00037  *
00038  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
00039  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00040  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00041  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
00042  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00043  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
00044  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00045  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00046  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00047  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00048  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00049  *
00050  * This file is part of the uIP TCP/IP stack
00051  *
00052  * $Id: telnetd.h,v 1.2 2006/06/07 09:43:54 adam Exp $
00053  *
00054  */
00055 #ifndef __TELNETD_H__
00056 #define __TELNETD_H__
00057 
00058 #include "uipopt.h"
00059 #include "../mult/api_services.h"
00060 
00061 void telnetd_appcall(void);
00062 
00063 #ifndef TELNETD_CONF_LINELEN
00064 #define TELNETD_CONF_LINELEN 40
00065 #endif
00066 #ifndef TELNETD_CONF_NUMLINES
00067 #define TELNETD_CONF_NUMLINES 16
00068 #endif
00069 
00070 
00071 struct telnetd_state {
00072   char *lines[TELNETD_CONF_NUMLINES];
00073   char buf[TELNETD_CONF_LINELEN];
00074   char bufptr;
00075   u8_t numsent;
00076   u8_t state;
00077 };
00078 
00079 
00080 //typedef struct telnetd_state uip_tcp_appstate_t;
00081 
00082 //
00083 //#ifndef UIP_APPCALL
00084 //#define UIP_APPCALL     telnetd_appcall
00085 //#endif
00086 
00087 #endif /* __TELNETD_H__ */
00088