Program Listing for File force_ip.h
↰ Return to documentation for file (rcdiscover/force_ip.h
)
/*
* 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<SocketType> sockets_;
};
}
#endif // FORCE_IP_H