telnet_callbacks.c

来自「在freescale 的ne64上开发的源代码」· C语言 代码 · 共 39 行

C
39
字号
#include"datatypes.h"
#include"globalvariables.h"
#include"debug.h"
#include"system.h"
#include"tcp_ip.h"
#ifdef TELNET_WANTED
#include"telnet_server.h"

INT16 telnet_findfile (UINT8 hash, UINT8 ses)
{
  	/* Access the File table on FLASH with given hash key*/
	return(1);
}

/** \brief Fill network transmit buffer with HTTP headers&data
 * 	\author
 *		\li Jari Lahti (jari.lahti@violasystems.com)
 *	\date 09.10.2002
 *	\param ses HTTP session identifier
 *	\param buf Pointer to buffer where data is to be stored
 *	\param buflen Length of the buffer in bytes
 *	\return
 *		\li >=0 - Number of bytes written to buffer
 *	\warning
 *		\li This function <b>MUST</b> be implemented by user application
 *		to work with local configuration
 *
 *	This handlers' job is to fill the buffer with the data that web server
 *	should return back through the TCP connection. This is accomplished
 *	based session identifer and values of variables in appropriate
 *	https entry.
 */
INT16 telnet_loadbuffer (UINT8 ses, UINT8* buf, UINT16 buflen)
{
	UINT16 i=0;
	return(i);
}
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?