Netservices modded to read fragmented HTTP respsonse/payload from special purpose server - 180 bytes only

Committer:
RodColeman
Date:
Thu Sep 08 10:41:36 2011 +0000
Revision:
0:8f5825f330b0
setDataLen hacked to 180bytes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RodColeman 0:8f5825f330b0 1 /*****************************************************************************
RodColeman 0:8f5825f330b0 2 * randm.h - Random number generator header file.
RodColeman 0:8f5825f330b0 3 *
RodColeman 0:8f5825f330b0 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
RodColeman 0:8f5825f330b0 5 * Copyright (c) 1998 Global Election Systems Inc.
RodColeman 0:8f5825f330b0 6 *
RodColeman 0:8f5825f330b0 7 * The authors hereby grant permission to use, copy, modify, distribute,
RodColeman 0:8f5825f330b0 8 * and license this software and its documentation for any purpose, provided
RodColeman 0:8f5825f330b0 9 * that existing copyright notices are retained in all copies and that this
RodColeman 0:8f5825f330b0 10 * notice and the following disclaimer are included verbatim in any
RodColeman 0:8f5825f330b0 11 * distributions. No written agreement, license, or royalty fee is required
RodColeman 0:8f5825f330b0 12 * for any of the authorized uses.
RodColeman 0:8f5825f330b0 13 *
RodColeman 0:8f5825f330b0 14 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
RodColeman 0:8f5825f330b0 15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
RodColeman 0:8f5825f330b0 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
RodColeman 0:8f5825f330b0 17 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
RodColeman 0:8f5825f330b0 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
RodColeman 0:8f5825f330b0 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
RodColeman 0:8f5825f330b0 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
RodColeman 0:8f5825f330b0 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
RodColeman 0:8f5825f330b0 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
RodColeman 0:8f5825f330b0 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
RodColeman 0:8f5825f330b0 24 *
RodColeman 0:8f5825f330b0 25 ******************************************************************************
RodColeman 0:8f5825f330b0 26 * REVISION HISTORY
RodColeman 0:8f5825f330b0 27 *
RodColeman 0:8f5825f330b0 28 * 03-01-01 Marc Boucher <marc@mbsi.ca>
RodColeman 0:8f5825f330b0 29 * Ported to lwIP.
RodColeman 0:8f5825f330b0 30 * 98-05-29 Guy Lancaster <glanca@gesn.com>, Global Election Systems Inc.
RodColeman 0:8f5825f330b0 31 * Extracted from avos.
RodColeman 0:8f5825f330b0 32 *****************************************************************************/
RodColeman 0:8f5825f330b0 33
RodColeman 0:8f5825f330b0 34 #ifndef RANDM_H
RodColeman 0:8f5825f330b0 35 #define RANDM_H
RodColeman 0:8f5825f330b0 36
RodColeman 0:8f5825f330b0 37 /***********************
RodColeman 0:8f5825f330b0 38 *** PUBLIC FUNCTIONS ***
RodColeman 0:8f5825f330b0 39 ***********************/
RodColeman 0:8f5825f330b0 40 /*
RodColeman 0:8f5825f330b0 41 * Initialize the random number generator.
RodColeman 0:8f5825f330b0 42 */
RodColeman 0:8f5825f330b0 43 void avRandomInit(void);
RodColeman 0:8f5825f330b0 44
RodColeman 0:8f5825f330b0 45 /*
RodColeman 0:8f5825f330b0 46 * Churn the randomness pool on a random event. Call this early and often
RodColeman 0:8f5825f330b0 47 * on random and semi-random system events to build randomness in time for
RodColeman 0:8f5825f330b0 48 * usage. For randomly timed events, pass a null pointer and a zero length
RodColeman 0:8f5825f330b0 49 * and this will use the system timer and other sources to add randomness.
RodColeman 0:8f5825f330b0 50 * If new random data is available, pass a pointer to that and it will be
RodColeman 0:8f5825f330b0 51 * included.
RodColeman 0:8f5825f330b0 52 */
RodColeman 0:8f5825f330b0 53 void avChurnRand(char *randData, u32_t randLen);
RodColeman 0:8f5825f330b0 54
RodColeman 0:8f5825f330b0 55 /*
RodColeman 0:8f5825f330b0 56 * Randomize our random seed value. To be called for truely random events
RodColeman 0:8f5825f330b0 57 * such as user operations and network traffic.
RodColeman 0:8f5825f330b0 58 */
RodColeman 0:8f5825f330b0 59 #if MD5_SUPPORT
RodColeman 0:8f5825f330b0 60 #define avRandomize() avChurnRand(NULL, 0)
RodColeman 0:8f5825f330b0 61 #else /* MD5_SUPPORT */
RodColeman 0:8f5825f330b0 62 void avRandomize(void);
RodColeman 0:8f5825f330b0 63 #endif /* MD5_SUPPORT */
RodColeman 0:8f5825f330b0 64
RodColeman 0:8f5825f330b0 65 /*
RodColeman 0:8f5825f330b0 66 * Use the random pool to generate random data. This degrades to pseudo
RodColeman 0:8f5825f330b0 67 * random when used faster than randomness is supplied using churnRand().
RodColeman 0:8f5825f330b0 68 * Thus it's important to make sure that the results of this are not
RodColeman 0:8f5825f330b0 69 * published directly because one could predict the next result to at
RodColeman 0:8f5825f330b0 70 * least some degree. Also, it's important to get a good seed before
RodColeman 0:8f5825f330b0 71 * the first use.
RodColeman 0:8f5825f330b0 72 */
RodColeman 0:8f5825f330b0 73 void avGenRand(char *buf, u32_t bufLen);
RodColeman 0:8f5825f330b0 74
RodColeman 0:8f5825f330b0 75 /*
RodColeman 0:8f5825f330b0 76 * Return a new random number.
RodColeman 0:8f5825f330b0 77 */
RodColeman 0:8f5825f330b0 78 u32_t avRandom(void);
RodColeman 0:8f5825f330b0 79
RodColeman 0:8f5825f330b0 80
RodColeman 0:8f5825f330b0 81 #endif /* RANDM_H */