opcuaServerMT.c 547 B

123456789101112131415161718192021222324
  1. /*
  2. ============================================================================
  3. Name : opcuaServer.c
  4. Author :
  5. Version :
  6. Copyright : Your copyright notice
  7. Description :
  8. ============================================================================
  9. */
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include <unistd.h>
  13. #include "networklayer.h"
  14. int main(int argc, char** argv) {
  15. NL_init(&NL_Description_TcpBinary,16664);
  16. while (UA_TRUE) {
  17. printf("%s does whatever servers do\n",argv[0]);
  18. sleep(2);
  19. }
  20. return EXIT_SUCCESS;
  21. }