.. _program_listing_file_rcdiscover_force_ip.h: Program Listing for File force_ip.h =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``rcdiscover/force_ip.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Roboception GmbH * Munich, Germany * www.roboception.com * * Copyright (c) 2017 Roboception GmbH * All rights reserved * * Author: Raphael Schaller */ #ifndef FORCE_IP_H #define FORCE_IP_H #ifdef WIN32 #include "socket_windows.h" #else #include "socket_linux.h" #endif namespace rcdiscover { class ForceIP { public: #ifdef WIN32 typedef SocketWindows SocketType; #else typedef SocketLinux SocketType; #endif public: ForceIP(); void sendCommand(std::uint64_t mac, std::uint32_t ip, std::uint32_t subnet, std::uint32_t gateway); private: std::vector sockets_; }; } #endif // FORCE_IP_H