Ethernet test for ECE 4180 and others to find your IP address and do a simple HTTP GET request over port 80.
Dependencies: mbed Socket lwip-eth lwip-sys lwip
EthernetInterface/lwip/include/netif/slipif.h@0:e7ca326e76ee, 2013-04-04 (annotated)
- Committer:
- mkersh3
- Date:
- Thu Apr 04 05:26:09 2013 +0000
- Revision:
- 0:e7ca326e76ee
Ethernet Test for ECE4180 and others to find their IP Address and do a simple HTTP GET request over port 80.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mkersh3 | 0:e7ca326e76ee | 1 | /* |
mkersh3 | 0:e7ca326e76ee | 2 | * Copyright (c) 2001, Swedish Institute of Computer Science. |
mkersh3 | 0:e7ca326e76ee | 3 | * All rights reserved. |
mkersh3 | 0:e7ca326e76ee | 4 | * |
mkersh3 | 0:e7ca326e76ee | 5 | * Redistribution and use in source and binary forms, with or without |
mkersh3 | 0:e7ca326e76ee | 6 | * modification, are permitted provided that the following conditions |
mkersh3 | 0:e7ca326e76ee | 7 | * are met: |
mkersh3 | 0:e7ca326e76ee | 8 | * 1. Redistributions of source code must retain the above copyright |
mkersh3 | 0:e7ca326e76ee | 9 | * notice, this list of conditions and the following disclaimer. |
mkersh3 | 0:e7ca326e76ee | 10 | * 2. Redistributions in binary form must reproduce the above copyright |
mkersh3 | 0:e7ca326e76ee | 11 | * notice, this list of conditions and the following disclaimer in the |
mkersh3 | 0:e7ca326e76ee | 12 | * documentation and/or other materials provided with the distribution. |
mkersh3 | 0:e7ca326e76ee | 13 | * 3. Neither the name of the Institute nor the names of its contributors |
mkersh3 | 0:e7ca326e76ee | 14 | * may be used to endorse or promote products derived from this software |
mkersh3 | 0:e7ca326e76ee | 15 | * without specific prior written permission. |
mkersh3 | 0:e7ca326e76ee | 16 | * |
mkersh3 | 0:e7ca326e76ee | 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND |
mkersh3 | 0:e7ca326e76ee | 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mkersh3 | 0:e7ca326e76ee | 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
mkersh3 | 0:e7ca326e76ee | 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE |
mkersh3 | 0:e7ca326e76ee | 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mkersh3 | 0:e7ca326e76ee | 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
mkersh3 | 0:e7ca326e76ee | 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
mkersh3 | 0:e7ca326e76ee | 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
mkersh3 | 0:e7ca326e76ee | 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
mkersh3 | 0:e7ca326e76ee | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
mkersh3 | 0:e7ca326e76ee | 27 | * SUCH DAMAGE. |
mkersh3 | 0:e7ca326e76ee | 28 | * |
mkersh3 | 0:e7ca326e76ee | 29 | * This file is part of the lwIP TCP/IP stack. |
mkersh3 | 0:e7ca326e76ee | 30 | * |
mkersh3 | 0:e7ca326e76ee | 31 | * Author: Adam Dunkels <adam@sics.se> |
mkersh3 | 0:e7ca326e76ee | 32 | * |
mkersh3 | 0:e7ca326e76ee | 33 | */ |
mkersh3 | 0:e7ca326e76ee | 34 | #ifndef __NETIF_SLIPIF_H__ |
mkersh3 | 0:e7ca326e76ee | 35 | #define __NETIF_SLIPIF_H__ |
mkersh3 | 0:e7ca326e76ee | 36 | |
mkersh3 | 0:e7ca326e76ee | 37 | #include "lwip/netif.h" |
mkersh3 | 0:e7ca326e76ee | 38 | |
mkersh3 | 0:e7ca326e76ee | 39 | #ifdef __cplusplus |
mkersh3 | 0:e7ca326e76ee | 40 | extern "C" { |
mkersh3 | 0:e7ca326e76ee | 41 | #endif |
mkersh3 | 0:e7ca326e76ee | 42 | |
mkersh3 | 0:e7ca326e76ee | 43 | err_t slipif_init(struct netif * netif); |
mkersh3 | 0:e7ca326e76ee | 44 | void slipif_poll(struct netif *netif); |
mkersh3 | 0:e7ca326e76ee | 45 | |
mkersh3 | 0:e7ca326e76ee | 46 | #ifdef __cplusplus |
mkersh3 | 0:e7ca326e76ee | 47 | } |
mkersh3 | 0:e7ca326e76ee | 48 | #endif |
mkersh3 | 0:e7ca326e76ee | 49 | |
mkersh3 | 0:e7ca326e76ee | 50 | #endif |
mkersh3 | 0:e7ca326e76ee | 51 |