You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ntk-console.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* This file is part of Netsukuku
  2. *
  3. * This source code is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU General Public License as published
  5. * by the Free Software Foundation; either version 2 of the License,
  6. * or (at your option) any later version.
  7. *
  8. * This source code is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. * Please refer to the GNU Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Public License along with
  14. * this source code; if not, write to:
  15. * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. *
  17. */
  18. #ifndef NETSUKUKUCONSOLE_H
  19. #define NETSUKUKUCONSOLE_H
  20. #include <time.h>
  21. #include "console.h"
  22. int sockfd = -1, sockfd1 = -1;
  23. struct sockaddr_un serveraddr;
  24. int rc, bytesReceived;
  25. time_t rawtime;
  26. struct tm *timeinfo;
  27. unsigned int uptime_sec;
  28. unsigned int uptime_min;
  29. unsigned int uptime_hour;
  30. unsigned int uptime_day;
  31. unsigned int uptime_month;
  32. unsigned int uptime_year;
  33. int i;
  34. void usage();
  35. void clean_up();
  36. int opensocket();
  37. void closesocket();
  38. #endif /*NETSUKUKUCONSOLE_H */