TcpTestClient.ned 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright (C) 2004 Andras Varga
  3. //
  4. // This program is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU General Public License
  6. // as published by the Free Software Foundation; either version 2
  7. // of the License, or (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License
  15. // along with this program; if not, write to the Free Software
  16. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. //
  18. // package module_.lib;
  19. import inet.applications.contract.ITCPApp;
  20. //
  21. // \TCP client application for testing the TCP model.
  22. //
  23. simple TcpTestClient like ITCPApp
  24. {
  25. parameters:
  26. string localAddress;
  27. int localPort;
  28. bool active;
  29. string connectAddress;
  30. int connectPort;
  31. string dataTransferMode @enum("bytecount","object","bytestream") = default("bytecount");
  32. double tOpen @unit(s);
  33. double tSend @unit(s);
  34. int sendBytes @unit(B);
  35. string sendScript;
  36. double tClose @unit(s);
  37. @display("i=block/app");
  38. gates:
  39. input tcpIn;
  40. output tcpOut;
  41. }