#include <cstring>
#include <chrono>
#include <thread>
#include <fcntl.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <prbt_hardware_support/modbus_check_ip_connection.h>
Go to the source code of this file.
Namespaces | |
prbt_hardware_support | |
Functions | |
bool | prbt_hardware_support::checkIPConnection (const char *ip, const unsigned int &port) |
Test the ip connection by connecting to the modbus server. More... | |
bool | prbt_hardware_support::hasSocketPendingErrors (const int &sockfd) |
sockaddr_in | prbt_hardware_support::initSockAddrIn (const char *ip, const unsigned int &port) |
timeval | prbt_hardware_support::initTimeout (const unsigned int &secs, const unsigned int &usecs) |
bool | prbt_hardware_support::isSocketReadyForWriteOp (const int &sockfd) |
void | prbt_hardware_support::setConnectionToNonBlocking (const int &sockfd) |