Skip to content

Commit

Permalink
Use udp_sink from spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
CJLove committed Sep 4, 2021
1 parent 2abd414 commit 6ee5d16
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 294 deletions.
2 changes: 1 addition & 1 deletion spdlog_udp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.1)

project(spdlog_udp)

include_directories(/usr/local/include)
include_directories(/usr/local/include /usr/local/include/spdlog )

set (spdlog_udp_SRC
udp.cpp
Expand Down
4 changes: 2 additions & 2 deletions spdlog_udp/udp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <spdlog/spdlog.h>
#include "udp_sink.h"
#include <spdlog/sinks/udp_sink.h>
#include <thread>
#include <condition_variable>
#include <chrono>
Expand Down Expand Up @@ -100,7 +100,7 @@ int main(int argc, char **argv)
case 'i':
ipAddr = optarg;
break;
case 's':
case 'p':
port = static_cast<uint16_t>(std::stoi(optarg));
break;
case '?':
Expand Down
85 changes: 0 additions & 85 deletions spdlog_udp/udp_client.h

This file was deleted.

117 changes: 0 additions & 117 deletions spdlog_udp/udp_client_windows.h

This file was deleted.

89 changes: 0 additions & 89 deletions spdlog_udp/udp_sink.h

This file was deleted.

0 comments on commit 6ee5d16

Please sign in to comment.