W5200(WIZ820io) network interface

w5200NetIf.h

Committer:
va009039
Date:
2012-04-17
Revision:
1:803123933c5a
Parent:
0:61831b843b44

File content as of revision 1:803123933c5a:

// w5200NetIf.h 2012/4/13
#ifndef W5200_NETIF_H
#define W5200_NETIF_H
#include "MyNetIf.h"

class w5200NetIf : public MyNetIf {
public:
    w5200NetIf();
    w5200NetIf(IpAddr ip, IpAddr netmask, IpAddr gateway, IpAddr dns);
    int IPrenew(int timeout_ms = 15000);
    int IPrelease(int timeout_ms = 15000);
    int setup(int timeout_ms = 15000);
    IpAddr m_dns;
private:
    bool m_useDhcp;
    IpAddr m_netmask;
    IpAddr m_gateway;
    const char* m_hostname;
};
#endif //W5200_NETIF_H