force_ip.h
Go to the documentation of this file.
1 /*
2 * Roboception GmbH
3 * Munich, Germany
4 * www.roboception.com
5 *
6 * Copyright (c) 2017 Roboception GmbH
7 * All rights reserved
8 *
9 * Author: Raphael Schaller
10 */
11 #ifndef FORCE_IP_H
12 #define FORCE_IP_H
13 
14 #ifdef WIN32
15 #include "socket_windows.h"
16 #else
17 #include "socket_linux.h"
18 #endif
19 
20 namespace rcdiscover
21 {
22 
26 class ForceIP
27 {
28  public:
29 #ifdef WIN32
30  typedef SocketWindows SocketType;
31 #else
33 #endif
34 
35  public:
40  ForceIP();
41 
51  void sendCommand(std::uint64_t mac, std::uint32_t ip,
52  std::uint32_t subnet, std::uint32_t gateway);
53 
54  private:
55  std::vector<SocketType> sockets_;
56 };
57 
58 }
59 
60 #endif // FORCE_IP_H
void sendCommand(std::uint64_t mac, std::uint32_t ip, std::uint32_t subnet, std::uint32_t gateway)
Send FORCEIP_CMD.
Definition: force_ip.cc:29
Class for sending GigE Vision FORCEIP_CMD to camera.
Definition: force_ip.h:26
SocketLinux SocketType
Definition: force_ip.h:32
std::vector< SocketType > sockets_
Definition: force_ip.h:55
ForceIP()
Constructor.
Definition: force_ip.cc:19
Socket implementation for Linux.
Definition: socket_linux.h:51


rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Sun Apr 18 2021 02:16:32