dpair.ned 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // ----------------------------------------------------------------------------
  2. //
  3. // HttpTools Project
  4. //
  5. // This file is a part of the HttpTools project. The project was created at
  6. // Reykjavik University, the Laboratory for Dependable Secure Systems (LDSS).
  7. // Its purpose is to create a set of OMNeT++ components to simulate browsing
  8. // behaviour in a high-fidelity manner along with a highly configurable
  9. // Web server component.
  10. //
  11. // Maintainer: Kristjan V. Jonsson (LDSS) kristjanvj@gmail.com
  12. // Project home page: code.google.com/p/omnet-httptools
  13. //
  14. // ----------------------------------------------------------------------------
  15. //
  16. // This program is free software; you can redistribute it and/or
  17. // modify it under the terms of the GNU General Public License version 3
  18. // as published by the Free Software Foundation.
  19. //
  20. // This program is distributed in the hope that it will be useful,
  21. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. // GNU General Public License for more details.
  24. //
  25. // You should have received a copy of the GNU General Public License
  26. // along with this program; if not, write to the Free Software
  27. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  28. //
  29. // ----------------------------------------------------------------------------
  30. package inet.examples.httptools.direct.pairdirect;
  31. import inet.applications.httptools.configurator.HttpController;
  32. import inet.node.httptools.DirectHost;
  33. //
  34. // Simple scenario with a pair of nodes. Direct message passing used.
  35. //
  36. network HttpDirectPair
  37. {
  38. parameters:
  39. @display("bgb=474,374");
  40. submodules:
  41. controller: HttpController {
  42. parameters:
  43. @display("p=62,60;i=block/cogwheel");
  44. }
  45. srv: DirectHost {
  46. parameters:
  47. @display("p=170,188;i=device/server_l");
  48. }
  49. cli: DirectHost {
  50. parameters:
  51. @display("p=316,188;i=device/laptop_l");
  52. }
  53. connections allowunconnected:
  54. }