mbed OS5

Fork of UIPEthernet by Zoltan Hudak

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers UIPServer.h Source File

UIPServer.h

00001 /*
00002  UIPServer.h - Arduino implementation of a UIP wrapper class.
00003  Copyright (c) 2013 Norbert Truchsess <norbert.truchsess@t-online.de>
00004  All rights reserved.
00005 
00006  This program is free software: you can redistribute it and/or modify
00007  it under the terms of the GNU General Public License as published by
00008  the Free Software Foundation, either version 3 of the License, or
00009  (at your option) any later version.
00010 
00011  This program is distributed in the hope that it will be useful,
00012  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  GNU General Public License for more details.
00015 
00016  You should have received a copy of the GNU General Public License
00017  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018   */
00019 #ifndef UIPSERVER_H
00020 #define UIPSERVER_H
00021 
00022 #include "ethernet_comp.h"
00023 #include "Server.h"
00024 #include "UIPClient.h"
00025 
00026 class UIPServer :
00027     public Server
00028 {
00029 public:
00030     UIPServer(uint16_t);
00031     UIPClient   available(void);
00032     void        begin(void);
00033     size_t      write(uint8_t);
00034     size_t      write(const uint8_t* buf, size_t size);
00035 
00036 //  using Print::write;
00037 
00038 private:
00039     uint16_t    _port;
00040 };
00041 #endif