[Ns-bugs] [Bug 508] [contribution] udp-echo-client modifications

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Jun 23 19:49:12 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=508


Craig Dowell <craigdo at ee.washington.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |craigdo at ee.washington.edu
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Craig Dowell <craigdo at ee.washington.edu>  2009-06-23 22:49:12 EDT ---
changeset:   84c133267507

There were some issues with buffer overflows and consistency problems, so I
massaged this a bit and added some capabilities.

See udp-echo.cc example for user visible API:

  UdpEchoClientHelper client (i.GetAddress (1), port);

  ...

#if 0
//
// Users may find it convenient to initialize echo packets with actual data;
// the below lines suggest how to do this
//
  client.SetFill(apps.Get (0), "Hello World");

  client.SetFill(apps.Get (0), 0xa5, 1024);

  uint8_t fill[] = {0, 1, 2, 3, 4, 5, 6};
  client.SetFill(apps.Get (0), fill, sizeof(fill), 1024);
#endif


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list