diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 22:41:26 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 22:41:26 +0000 |
commit | dae9c2321c03dabb3817cc5216be27b9ec5aaf8e (patch) | |
tree | 01d37ca858896d3e9e165575b4fc6531a26d1bc7 /nuttx | |
parent | 860a3382a921df07f0d816e5d12979b6e5de69be (diff) | |
download | px4-nuttx-dae9c2321c03dabb3817cc5216be27b9ec5aaf8e.tar.gz px4-nuttx-dae9c2321c03dabb3817cc5216be27b9ec5aaf8e.tar.bz2 px4-nuttx-dae9c2321c03dabb3817cc5216be27b9ec5aaf8e.zip |
Add examples/sendmail
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1663 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/examples/README.txt | 19 | ||||
-rw-r--r-- | nuttx/include/net/uip/smtp.h | 5 |
2 files changed, 22 insertions, 2 deletions
diff --git a/nuttx/examples/README.txt b/nuttx/examples/README.txt index 52e0c542b..0ae8d9d34 100644 --- a/nuttx/examples/README.txt +++ b/nuttx/examples/README.txt @@ -230,6 +230,25 @@ examples/romfs * CONFIG_EXAMPLES_ROMFS_MOUNTPOINT The location to mount the ROM disk. Deafault: "/usr/local/share" +examples/sendmail +^^^^^^^^^^^^^^^^^ + + This examples exercises the uIP SMTP logic by sending a test message + to a selected recipient. + + NOTE 1: This test is not integrated into NuttX as of this writing, + it can only be built to execute of the Cygwin/Linux host for unit- + testing of the logic. + + cd examples/sendmail + make -f Makefile.host + + NOTE 2: This sendmail example only works for the simplest of + environments. Virus protection software on your host may have + to be disabled to allow you to send messages. Only very open, + unprotected recipients can be used. Most will protect themselves + from this test email because it looks like SPAM. + examples/serloop ^^^^^^^^^^^^^^^^ diff --git a/nuttx/include/net/uip/smtp.h b/nuttx/include/net/uip/smtp.h index aae9c972e..7a95323bb 100644 --- a/nuttx/include/net/uip/smtp.h +++ b/nuttx/include/net/uip/smtp.h @@ -1,8 +1,8 @@ /**************************************************************************** -/* smtp.h + * smtp.h * SMTP header file * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Heavily leveraged from uIP 1.0 which also has a BSD-like license: @@ -47,6 +47,7 @@ #include <sys/types.h> #include <net/uip/uipopt.h> +#include <net/uip/uip.h> /**************************************************************************** * Type Definitions |