Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of logger by
Diff: logger.h
- Revision:
- 4:b51e0614c767
- Parent:
- 3:91ee7ead8536
--- a/logger.h Fri Oct 14 15:53:04 2016 +0100 +++ b/logger.h Fri Oct 14 15:55:26 2016 +0100 @@ -1,6 +1,7 @@ /* * syslog device library * Copyright (c) 2011 Hiroshi Suga + * Copyright (c) 2016 Colin Hogben * Released under the MIT License: http://mbed.org/license/mit */ @@ -15,9 +16,6 @@ #include "NetworkInterface.h" #include "UDPSocket.h" -#define LOG_LEN 256 -#define LOG_UDPPORT 514 - /** * @enum Severity of priority */ @@ -93,12 +91,13 @@ */ void send(const char *, const char *); -private: - NetworkInterface *_netif; + private: + void _Logger(NetworkInterface *netif, const char *host, const char *myname); + + private: UDPSocket _udpsock; SocketAddress _remote; char _ident[32]; - }; #endif