TelescopeClient.cpp   TelescopeClient.cpp 
skipping to change at line 160 skipping to change at line 160
GetSystemTimeAsFileTime(&file_time); GetSystemTimeAsFileTime(&file_time);
t = (*((__int64*)(&file_time))/10) - 86400000000LL*134774; t = (*((__int64*)(&file_time))/10) - 86400000000LL*134774;
#else #else
struct timeval tv; struct timeval tv;
gettimeofday(&tv,0); gettimeofday(&tv,0);
t = tv.tv_sec * 1000000LL + tv.tv_usec; t = tv.tv_sec * 1000000LL + tv.tv_usec;
#endif #endif
return t - core->getDeltaT(StelUtils::getJDFromSystem())*1000000; // Delta T anti-correction return t - core->getDeltaT(StelUtils::getJDFromSystem())*1000000; // Delta T anti-correction
} }
TelescopeTCP::TelescopeTCP(const QString &name, const QString &params, Equi TelescopeTCP::TelescopeTCP(const QString &name, const QString &params, Equi
nox eq) : nox eq)
TelescopeClient(name), : TelescopeClient(name)
tcpSocket(new QTcpSocket()), , port(0)
equinox(eq) , tcpSocket(new QTcpSocket())
, end_of_timeout(0)
, time_delay(0)
, equinox(eq)
{ {
hangup(); hangup();
// Example params: // Example params:
// localhost:10000:500000 // localhost:10000:500000
// split into: // split into:
// host = localhost // host = localhost
// port = 10000 (int) // port = 10000 (int)
// time_delay = 500000 (int) // time_delay = 500000 (int)
 End of changes. 1 change blocks. 
5 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/