aRts audio server
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.

53 lines
1.5KB

  1. /*
  2. Copyright (C) 1999 Stefan Westerfeld
  3. stefan@space.twc.de
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program 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. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15. Permission is also granted to link this program with the Qt
  16. library, treating Qt like a library that normally accompanies the
  17. operating system kernel, whether or not that is in fact the case.
  18. */
  19. #include "common.h"
  20. #include "hello_impl.h"
  21. #include <stdio.h>
  22. #include <vector>
  23. #include <string>
  24. using namespace std;
  25. using namespace Arts;
  26. int main()
  27. {
  28. Dispatcher dispatcher(0,Dispatcher::startUnixServer);
  29. Hello server;
  30. string reference = server.toString();
  31. printf("%s\n",reference.c_str());
  32. Hello h = Reference(reference);
  33. if(!h.isNull())
  34. h.hello("local test");
  35. else
  36. printf("Local access to the Hello_impl object failed?\n");
  37. dispatcher.run();
  38. return 0;
  39. }