?? smtp.h
字號:
/******************************************************************
* smtp.h:
*
* Copyright (c) 2001 Atmel Corporation.
* All Rights Reserved.
*
* You are autorized to use, copy and distribute this software only at
* a single site (the term "site" meaning a single company location).
* This copyright notice must be included in any copy, modification
* or portion of this software merged into another program.
*
* This software is licenced solely for use with Atmel AVR micro
* controller family. The software may not be modified to execute on
* any other microcontroller architectures
*
* This software is provided "as is"; Without warranties either express
* or implied, including any warranty regarding merchantability,
* fitness for a particular purpose or noninfringement.
*
* In no event shall Atmel or its suppliers be liable for any special,
* indirect,incidential or concequential damages resulting from the
* use or inability to use this software.
*
* Revision history:
*
* January 17, 2001: Version 1.0 Created by JB
* July 13, 2001 Version 1.2 JB
* - Changed to IAR compiler V2.25
* - Renamed flash file functions to avoid conflict with
* standard file I/O names
* - Bug fixes in HTTP
* - Speed optimization in TCP
*
*
*******************************************************************/
/*size of buffers*/
#define SMTP_BUFFER 100
#define READ_BUFFER 50
#define SMTP_BUFFER_READ_MAIL 35
#define SMTP_BUFFER_READ_HOST 10
#define SMTP_TIMEOUT 20000
#define SMTP_SERVER_PORT 25
/*sends a mail to the address given in server.ini*/
unsigned char sendMail(char * subject, char * message);
/*waits for data on port 25 or timeout, timout is given by SMTP_TIMTOUT*/
unsigned char SMTPwait(SOCKET * sock);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -