Hi, You need to put like this:
const_cast<char *> for example: Instead of putting like p=strcpy( answer, "m" ); p=*const_cast<char *>(*strcpy( answer, "m" )*)*; It will work. On Fri, Mar 4, 2011 at 6:30 AM, <[email protected]> wrote: > Send Ns-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. Ns2 on Mac OS, problem invoking Nam (Alessandro Coppola) > 2. problem with NIST Mob package in NS-2.29 (zmezm 14) > 3. how to find energy consumed to transfer from src to dst for > each packet (amareswararao k) > 4. Re: Ns2 on Mac OS, problem invoking Nam (Alessandro Coppola) > 5. need DYMO Sample program. (sree ram) > 6. New cwnd algorithm (Ghassan Akrem) > 7. Need Dymo protocol simulation (sree ram) > 8. Basic Rate and Data Rate (amir) > 9. Re: Basic Rate and Data Rate (Mubashir Rehmani) > 10. ns-2.30 installation (maissa boujelben) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 3 Mar 2011 04:25:25 +0100 > From: Alessandro Coppola <[email protected]> > Subject: [ns] Ns2 on Mac OS, problem invoking Nam > To: ns-users <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello everybody, > I tried to install ns-allinone-2.29.3 to my iMac Intel with Mac OS X > 10.4.11. After the install procedure, I put ns-allinone-2.29/otcl-1.11 and > ns-allinone-2.29/lib folders into my DYLD_LIBRARY_PATH environment > variable, > and ns-allinone-2.29/tcl8.4.11/library folder into my TCL_LIBRARY > environmental variable, using these commands: > > > export > > > DYLD_LIBRARY_PATH=/Users/Alex/Desktop/ns-allinone-2.29/otcl-1.11:/Users/Alex/Desktop/ns-allinone-2.29/lib > > > > export TCL_LIBRARY=/Users/Alex/Desktop/ns-allinone-2.29/tcl8.4.11/library > > Executing a simple tcl example file, I have this error message: > > > ns: finish: couldn't execute "nam": no such file or directory > > while executing > > "exec nam out.nam &" > > (procedure "finish" line 9) > > invoked from within > > "finish" > > I searched solutions on web for a long time, and I've seen that I've to > put > nam directory in the PATH. I tried to do this with > > > export PATH=$PATH:/Users/Alex/Desktop/ns-allinone-2.29/nam-1.11/ > > > and the directory is effectively added to the path, as I can see with echo > $PATH. But it doesn't work the same. > Any suggestion? > Thanks in advance > > Alessandro > > > ------------------------------ > > Message: 2 > Date: Wed, 2 Mar 2011 21:00:43 -0800 (PST) > From: zmezm 14 <[email protected]> > Subject: [ns] problem with NIST Mob package in NS-2.29 > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=utf-8 > > good day all i hope you are having a good time , with no stress . > > i have a problem with installing the NIST Mob package in NS-2.29 on Ubuntu > 8 .04 > > i patched the? pmip6-for-ns-2.29-nist.patch? patch successfully , but when > i run > ./install in the ns-allinone-2.29? i get this error in this exact folder > mac/mac-802_11.h? > can anyone pleas help me with that .. > > this is the error.. > In file included from mac/mac-802_11.cc:63: > mac/mac-802_11.h: At global scope: > mac/mac-802_11.h:620: error: extra qualification ?Mac802_11::? on member > ?calFreq? > mac/mac-802_11.cc: In member function ?void > Mac802_11::update_watch(StatWatch*, double)?: > mac/mac-802_11.cc:3442: warning: deprecated conversion from string constant > to ?char*? > mac/mac-802_11.cc:3444: warning: deprecated conversion from string constant > to ?char*? > mac/mac-802_11.cc:3446: warning: deprecated conversion from string constant > to ?char*? > mac/mac-802_11.cc:3448: warning: deprecated conversion from string constant > to ?char*? > mac/mac-802_11.cc: In member function ?void > Mac802_11::update_throughput(ThroughputWatch*, double)?: > mac/mac-802_11.cc:3485: warning: deprecated conversion from string constant > to ?char*? > mac/mac-802_11.cc:3487: warning: deprecated conversion from string constant > to ?char*? > mac/mac-802_11.cc:3489: warning: deprecated conversion from string constant > to ?char*? > mac/mac-802_11.cc:3491: warning: deprecated conversion from string constant > to ?char*? > make: *** [mac/mac-802_11.o] Error 1 > Ns make failed! > See http://www.isi.edu/nsnam/ns/ns-problems.html for problems > > > best regards to all > > > > > > ------------------------------ > > Message: 3 > Date: Thu, 3 Mar 2011 11:59:26 +0530 (IST) > From: amareswararao k <[email protected]> > Subject: [ns] how to find energy consumed to transfer from src to dst > for each packet > To: "[email protected]" <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=utf-8 > > hi all, > I am working on energy efficient wireless network. i want to know how > much energy consumed for each packet in the entire path. > i don't know how to implement it. i have already spent so much time. > > any help is appreciated. > > thanks in advance. > > > > > ------------------------------ > > Message: 4 > Date: Thu, 3 Mar 2011 09:41:30 +0100 > From: Alessandro Coppola <[email protected]> > Subject: Re: [ns] Ns2 on Mac OS, problem invoking Nam > To: Ilias Tsompanidis <[email protected]>, ns-users <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-7 > > You found the problem, I don't have nam.exe. Anyway, I already tried to > install nam manually, but I couldn't. There is no makeall file in the > nam-1.11 directory, the only executable files are config.guess, > config.status, configure, install-sh, validate, and no one works. > Thank you > > > On Thu, Mar 3, 2011 at 4:43 AM, Ilias Tsompanidis <[email protected]> wrote: > > > Nam is most probably not installed/compiled. Is there a nam executable? > > As it is an optional package of ns-allinone, it doesn't cause the > > installation process to break if it is not compiled correctly. > > Try to compile only nam. In nam directory execute: > > make all (configure is not needed) > > > > Hope this helps, > > Ilias > > > > On 03 ??? 2011, at 3:25 ?.?., Alessandro Coppola wrote: > > > > > > > > Hello everybody, > > > I tried to install ns-allinone-2.29.3 to my iMac Intel with Mac OS X > > > 10.4.11. After the install procedure, I put ns-allinone-2.29/otcl-1.11 > > and > > > ns-allinone-2.29/lib folders into my DYLD_LIBRARY_PATH environment > > variable, > > > and ns-allinone-2.29/tcl8.4.11/library folder into my TCL_LIBRARY > > > environmental variable, using these commands: > > > > > >> export > > >> > > > DYLD_LIBRARY_PATH=/Users/Alex/Desktop/ns-allinone-2.29/otcl-1.11:/Users/Alex/Desktop/ns-allinone-2.29/lib > > >> > > >> export > > TCL_LIBRARY=/Users/Alex/Desktop/ns-allinone-2.29/tcl8.4.11/library > > > > > > Executing a simple tcl example file, I have this error message: > > > > > >> ns: finish: couldn't execute "nam": no such file or directory > > >> while executing > > >> "exec nam out.nam &" > > >> (procedure "finish" line 9) > > >> invoked from within > > >> "finish" > > > > > > I searched solutions on web for a long time, and I've seen that I've to > > put > > > nam directory in the PATH. I tried to do this with > > > > > >> export PATH=$PATH:/Users/Alex/Desktop/ns-allinone-2.29/nam-1.11/ > > >> > > > and the directory is effectively added to the path, as I can see with > > echo > > > $PATH. But it doesn't work the same. > > > Any suggestion? > > > Thanks in advance > > > > > > Alessandro > > > > > > > -- > Alessandro Coppola > > > ------------------------------ > > Message: 5 > Date: Thu, 3 Mar 2011 20:27:48 +0530 > From: sree ram <[email protected]> > Subject: [ns] need DYMO Sample program. > To: ns-users <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > can anyone help me for simulation of Dymo routing protocol in ns-2.34. > > > ------------------------------ > > Message: 6 > Date: Thu, 3 Mar 2011 07:16:43 -0800 (PST) > From: Ghassan Akrem <[email protected]> > Subject: [ns] New cwnd algorithm > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=iso-8859-1 > > > > Hi all friends.. > ? > I look to test a lot of congestion control algorithm with my new TCP, over > ns-2.34 > ? > Any one developed or have a new high performance cwnd mechanism ? > ? > Regards > > > > > > ------------------------------ > > Message: 7 > Date: Thu, 3 Mar 2011 21:46:49 +0530 > From: sree ram <[email protected]> > Subject: [ns] Need Dymo protocol simulation > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi > I need a sample program for DYMO routing protocol implementation. I hv > been using dymoum0.3. anyone please send a sample program for DYMO protocol > with 3nodes. very urgent pls... > > > ------------------------------ > > Message: 8 > Date: Thu, 03 Mar 2011 20:06:14 +0100 > From: amir <[email protected]> > Subject: [ns] Basic Rate and Data Rate > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi researchers, > > My question is related to the Basic Rate and Data Rate. > Assume that the value for these two parameters are different which in a > reality it is different. > > How ns differs between which packets should be sent at the Basic Rate > and which ons should be sent at Data Rate? > > Best Regards, > Amir > > -- > _______________________________________________________ > Amir Darehshoorzadeh | Comp. Architecture Dept. > PhD Student | UPC-Campus Nord, C6-221 > Email: [email protected] | c/ Jordi Girona, 1-3 > Tel: | 08034 Barcelona - SPAIN > http://personals.ac.upc.edu/amir > _______________________________________________________ > > > > > > > ------------------------------ > > Message: 9 > Date: Thu, 3 Mar 2011 20:29:58 +0100 > From: Mubashir Rehmani <[email protected]> > Subject: Re: [ns] Basic Rate and Data Rate > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Amir, > > In the following document Section 1.8.4, it is written that: > > *"All the control packets would be transmitted through the basicRate_ which > is mostly 1Mbps, configuration is in the file ns2/tcl/lan/ns-mac.tcl; All > the data packet would be transmitted through the dataRate_ which is also > mostly 1Mbps; You need to specify it through your tcl configuration > simulation file if you need another value for them, especally a different > bandwidth_;"* > > http://www.cs.binghamton.edu/~kliu/research/ns2code/note.pdf > > MAC layer that deals with RTS and CTS but they are also transmitted with > certain rate. In fact, there are two rates Basic rate and Data rate. Some > packets are scheduled at basic rate while others are at data rate > > Mac/802_11 set dataRate_ 11Mb > Mac/802_11 set basicRate_ 2Mb > > For more help: > http://www.joshuarobinson.net/docs/ns-802_11b.html > > http://www.comp.nus.edu.sg/~wuxiucha/research/reactive/publication/Simulate80211ChannelWithNS2.pdf > > best regards > Mubashir Husain Rehmani > Lip6/UPMC Sorbonne Universt? > Paris, France > > On 3 March 2011 20:06, amir <[email protected]> wrote: > > > > > Hi researchers, > > > > My question is related to the Basic Rate and Data Rate. > > Assume that the value for these two parameters are different which in a > > reality it is different. > > > > How ns differs between which packets should be sent at the Basic Rate > > and which ons should be sent at Data Rate? > > > > Best Regards, > > Amir > > > > -- > > _______________________________________________________ > > Amir Darehshoorzadeh | Comp. Architecture Dept. > > PhD Student | UPC-Campus Nord, C6-221 > > Email: [email protected] | c/ Jordi Girona, 1-3 > > Tel: | 08034 Barcelona - SPAIN > > http://personals.ac.upc.edu/amir > > _______________________________________________________ > > > > > > > > > > > > > -- > Mubashir Husain Rehmani > > > ------------------------------ > > Message: 10 > Date: Thu, 3 Mar 2011 21:19:57 +0100 > From: maissa boujelben <[email protected]> > Subject: [ns] ns-2.30 installation > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=windows-1252 > > Hi everybody, > > I need to simulate HSDPA network so I have to install ns-2.30! > I got this error > > Tcl.cc:566: error: invalid conversion from ?const char*? to ?char*? > make: *** [Tcl.o] Erreur 1 > > Can anyone help please?? it's urgent! > Thanks > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > [email protected] > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 87, Issue 3 > *************************************** > -- Regards, Subha
