mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 18:10:47 +02:00
Added set options function for sockets
This commit is contained in:
@@ -9,6 +9,14 @@ URServer::URServer(int port)
|
||||
{
|
||||
}
|
||||
|
||||
void URServer::setOptions(int socket_fd)
|
||||
{
|
||||
TCPSocket::setOptions(socket_fd);
|
||||
|
||||
int flag = 1;
|
||||
setsockopt(socket_fd, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int));
|
||||
}
|
||||
|
||||
std::string URServer::getIP()
|
||||
{
|
||||
char buf[128];
|
||||
|
||||
Reference in New Issue
Block a user