Fixed scripting + cleaner code + fixed RTLTCP

This commit is contained in:
AlexandreRouma
2020-10-07 22:44:54 +02:00
parent 46d5b8a750
commit 3b6a3ff94d
33 changed files with 274 additions and 100 deletions

View File

@ -10,8 +10,8 @@
#define CONCAT(a, b) ((std::string(a) + b).c_str())
MOD_INFO {
/* Name: */ "fike_source",
/* Description: */ "File input module for SDR++",
/* Name: */ "rtl_tcp_source",
/* Description: */ "RTL-TCP input module for SDR++",
/* Author: */ "Ryzerth",
/* Version: */ "0.1.0"
};

View File

@ -87,7 +87,7 @@ public:
bzero(&serv_addr, sizeof(struct sockaddr_in));
serv_addr.sin_family = AF_INET;
bcopy((char *)server->h_addr, (char *)&serv_addr.sin_addr.s_addr, server->h_length);
serv_addr.sin_port = port;
serv_addr.sin_port = htons(port);
if (connect(sockfd,(struct sockaddr *)&serv_addr,sizeof(serv_addr)) < 0) {
// TODO: log error
return false;