opcuaServerMT.c 566 B

12345678910111213141516171819202122232425
  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 "ua_stack.h"
  13. int main(int argc, char** argv) {
  14. UA_Stack_init(&UA_TransportLayerDescriptorTcpBinary,16664,UA_STACK_MULTITHREADED);
  15. while (UA_TRUE) {
  16. printf("%s does whatever servers do\n",argv[0]);
  17. sleep(2);
  18. }
  19. return EXIT_SUCCESS;
  20. }