Wrapper of NetworkSocketAPI for BSD sockets on POSIX systems
Dependents: BSDInterfaceTests HelloBSDInterface
Diff: BSDInterface.h
- Revision:
- 1:29c61c1420c8
- Parent:
- 0:d92b89886434
- Child:
- 2:0978e139e1c5
diff -r d92b89886434 -r 29c61c1420c8 BSDInterface.h --- a/BSDInterface.h Sun Feb 28 02:00:46 2016 +0000 +++ b/BSDInterface.h Sat Feb 27 21:01:54 2016 -0600 @@ -1,4 +1,4 @@ -/* LWIP implementation of NetworkInterfaceAPI +/* BSD implementation of NetworkInterfaceAPI * Copyright (c) 2015 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,24 +14,18 @@ * limitations under the License. */ -#ifndef LWIP_INTERFACE_H -#define LWIP_INTERFACE_H +#ifndef BSD_INTERFACE_H +#define BSD_INTERFACE_H #include "EthernetInterface.h" -#include "rtos.h" -#include "lwip/netif.h" -/** LWIPInterface class - * Implementation of the NetworkInterface for LWIP +/** BSDInterface class + * Implementation of the NetworkInterface for BSD sockets */ -class LWIPInterface : public EthernetInterface +class BSDInterface : public NetworkInterface { public: - // Implementation of EthernetInterface - virtual int32_t connect(); - virtual int32_t disconnect(); - // Implementation of NetworkInterface virtual const char *getMACAddress();