mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-25 20:07:51 +02:00
Fixed scripting + cleaner code + fixed RTLTCP
This commit is contained in:
@ -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"
|
||||
};
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user