Skip to content

Commit

Permalink
Merge branch 'shared-memory-on-localhost' of github.com:luxonis/XLink…
Browse files Browse the repository at this point in the history
… into shared-memory-on-localhost
  • Loading branch information
TheMutta committed Jul 4, 2024
2 parents fe25ef9 + a0b71c4 commit f017c1a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/pc/protocols/tcpip_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,17 +1166,6 @@ int tcpipPlatformBootFirmware(const deviceDesc_t* deviceDesc, const char* firmwa
return -1;
}

// Checks whether ip is localhost
bool tcpipIsLocalhost(const char *ip) {
if(strncmp(ip, "127.0.0.1", strlen("127.0.0.1")) == 0 ||
strncmp(ip, "0.0.0.0", strlen("0.0.0.0")) == 0) {
return true;
}

return false;
}


// Discovery Service
static std::thread serviceThread;
static std::mutex serviceMutex;
Expand Down
2 changes: 0 additions & 2 deletions src/pc/protocols/tcpip_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ int tcpipPlatformDeviceFdDown(void *fd);
int tcpipPlatformClose(void *fd);
int tcpipPlatformBootFirmware(const deviceDesc_t* deviceDesc, const char* firmware, size_t length);

bool tcpipIsLocalhost(const char *ip);

xLinkPlatformErrorCode_t tcpip_start_discovery_service(const char* id, XLinkDeviceState_t state, XLinkPlatform_t platform);
void tcpip_stop_discovery_service();
void tcpip_detach_discovery_service();
Expand Down

0 comments on commit f017c1a

Please sign in to comment.