/* Reference ETSI EN 300 743 V1.3.1 (2006-11) */
-#define DVBSDEBUG 0
+//#define DVBSDEBUG
#ifdef DVBSDEBUG
initted = 1;
logLevel = startLogLevel;
enabled = tenabled;
- //logfile = fopen(fileName, "a");
+ logfile = fopen(fileName, "a");
// logfile = fopen(stdout, "a");
- logfile = stdout;
+ //logfile = stdout;
// logfile = fopen("/log", "a");
if (logfile) return 1;
return true;
}
+#ifdef WIN32
+ if ((connectResult != SOCKET_ERROR) || (WSAGetLastError() != WSAEWOULDBLOCK))
+#else
if (errno != EINPROGRESS)
+#endif
{
CLOSESOCKET(sockfd);
sockfd = -1;
void VConnect::threadMethod()
{
+ logger->log("VConnect", Log::DEBUG, "start threadMethod");
+
ULONG delay = 0;
int success;
if (!commandLineServer.empty()) // Server is specified, fake a servers array
{
//servers.emplace_back(commandLineServer, "", 3024, 0);
-
vdpc.TEMPaddCLIServer(commandLineServer); // FIXME move to new config system NCONFIG
}
else
Audio* audio;
Wol* wol;
Sleeptimer* sleeptimer;
-
+std::string commandLineServer;
bool wnd_fullscreen=false;
bool wnd_topmost=false;
const std::string& getCommandLineServer()
{
- return std::string();
+ return commandLineServer;
}