Programming :: NS2 Marc Greis Chapter 7 Ping Protocol Code
Dec 16, 2010
Split programming in ns2 marc greis chapter 7 ping protocol code. I tried compiling the above program and got the errors as in error.txt I have attached. Ping.cc and ping.h also are attached. I have supplied all the required header files along with appropriate paths and yet this problem.
ATTACH]5537[/ATTACH]
pingcc.txt
pingh.txt
View 3 Replies
ADVERTISEMENT
Dec 16, 2010
Please let me know how i will overcome this.I have tried from the past 5 days.
[root@localhost ~]# cc p.cc
In file included from p.cc:1:
/root/ping.h:2:32: warning: multi-character character constant
In file included from p.cc:1:
/root/ping.h:4: error: stray in program
/root/ping.h:2: error: invalid function declaration
[Code]...
View 2 Replies
View Related
Jun 9, 2010
Want to run some cmds on Marc Greis Tutorial but always gets an error msg- "can't find ns: no such command. How can I resolve it? Also do not know how to edit on the terminal Have to start afresh anytime I notice a mistake. How can I successfully run a file to get a result. Have not been able to reproduce the result in Marc Greis tutorials.
View 5 Replies
View Related
Jun 11, 2011
I need source code of leach protocol for NS2
View 1 Replies
View Related
Aug 1, 2011
i want to debugg TDMA protocol source code(.cc files) with gdb debugger.
View 1 Replies
View Related
Sep 16, 2009
I love Ubuntu but there is just one thing that I cannot get working. I have vista on this computer (Which I am going to delete after I get this working) when this computer is booted into vista then I type "192.168.1.65" (which is this computers internal ip address) and it connects to it without a problem. When I try this on ubuntu with KRFB running I type "192.168.1.65:5900" as it tells me to do with the added port number. This computer (This is the one I am Connecting to says "The remote user has been authenticated and is now connected." and when I hover over the icon it says "Desktop sharing - Connected with 192.168.1.70" which is my laptops IP address. On my laptop however it says "Remote Desktop Disconnected Because of a protocol error detected at the client (code 0x1104), this session will be disconnected. Please try connecting to the remote computer again." No matter how many times I try it doesn't work.
View 6 Replies
View Related
Mar 30, 2011
I need to rewrite the selenium java code into its equivalent php code.
View 5 Replies
View Related
Jul 15, 2011
I am using an virtual machine. where I need to ping from one machine to another. earlier I was able to ping. But after going to google.com once, I cannot ping back to this machine.
But if I gave ping -I eth1 <IP> then I can ping.
I cannot install any package, so tell me solution which includes not installing any package.
View 2 Replies
View Related
Aug 3, 2010
i need to write a c code to ping IP addresses which are read from a text file and need to log the response time in another text file.
View 4 Replies
View Related
Jan 16, 2011
So what I'm trying to do is write a USB stack for a uC, but beyond the 10 ms reset signals from the host I'm kind of lost. What happens after that? If someone could point me somewhere that explains it step by step in detail, instead of jumping around
View 2 Replies
View Related
Feb 9, 2011
I developed a protocol "it's a modification of OLSR" for wireless networks, it was with JAVA and I try to simulate it on NS2, I used AgentJ, so in the TCL I did any thing like usual;
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop)Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
[code]....
and I didn't specified the protocol because I attached my nodes to the JAVA class responsible for the protocol, but when I run it generates errors, it claims the protocol to use, so I don't know how proceeding.
View 2 Replies
View Related
Jul 17, 2011
There is a protocol in use - for example when I use Firefox to do a query through Google - as I type into the search field the browser sends my characters - one at a time - to the server. As I recall, at one time I found the specification but I'm pulling a blank. As I recall it does a POST of each character as I enter it, and the server responds before I have entered a <CR>. I want to write a client side program that uses that protocol and need to see the spec.
View 2 Replies
View Related
Sep 29, 2010
how to interface ADE7758 with AT91sam9261 using SPI protocol
View 2 Replies
View Related
Oct 18, 2010
I have a very strange problem in a C++ RHEL4 app. Here is the code: socket(PF_INET, SOCK_STREAM, 0) returns errno 97 socket(PF_INET, SOCK_DGRAM, 0) returns successow that is strange or what?additional info:1. Extracting the above code into a test program, both return success.2. Placing the above code into the 1st line of my app, error as above.3. I ran app and test program in the same terminal window.4. My app links in many static libraries 5. My app runs fine when compiled and linked on RHEL56. My APP is a ss7 endpoint (SIP <==> SS7 message flow)7. I verified PF_INET, SOCK_STREAM, SOCK_SGRAM values are correct.
View 2 Replies
View Related
Jan 25, 2011
how am I supposed to use this guide. The doc states different messages lengths and formats, as a programmer, how should I utilize these information?Just fyi, my question is a general qns and does not necessarily target to just using netxms, but could be any other opensource as well.
View 4 Replies
View Related
Dec 6, 2010
I have a problem as follows:
(1) In which way can I get the source code of command "ping" from my OS(Ubuntu9)?
View 4 Replies
View Related
Mar 3, 2010
Is there any linux video editor that supports adding chapter markers to videos? I tried everything I could get my hands on, including openshot and kdenlive (which last won't run under GNOME, however many kde libs I install, and I don't want to switch to kde4 which I hate), and so far nothing works. I don't understand where the problem is; it's so easy on the Mac. Is there an application comparable to the Mac's GarageBand?
I am not talking about creating music here (though I may in the future), simply about adding chapter markers to videos, which GarageBand does very well and fast. I could go on using GarageBand, which can import .mkv and .avi movies, but eventually I should like to switch over to Ubuntu completely, because maintaining two complete systems including two full sets of backups is very uncomfortable.
View 5 Replies
View Related
Mar 2, 2010
I use DeVeDe a lot, and it works great for general conversion and DVD authoring. I don't know, however, how to create a DVD such that each of the original .avi files will be their own chapters. In other words, I have about six or seven .avi files (episodes of a season of a television show) and I want to create a DVD with those episodes that I can navigate separately. Do I first convert each .avi? How then do I create a single DVD with six or seven chapters/episodes?
View 2 Replies
View Related
Jul 1, 2011
I played an MP4 file with Totem and it showed the chapter name. How to turn this off?
View 2 Replies
View Related
Jul 28, 2010
I want to simulate a serial protocol in user space program to test reception algorithm. The protocol is similar to UART protocol but frame format is different. The duration of 1 bit is 114,46 us. In my main function I'm creating two threads. Tx for simulating transmitting data and Rx for reception data. For measure time I use create_timer() function and signals. Each thread has its own timer and signal handler. Tx timer uses SIGUSR1 and Rx timer uses SIGUSR2. Tx thread sets the global variable and Rx reads it.
The timers are set to sample with 114,46 us period. When they reach this value signal handler should set the flag. Flag is check in thread and some operation are made. When I set the timers period for longer time (100 ms) everything works fine but when I change it to default value (114,46 us) the Rx thread doesn't receive the proper data. I am wondering if the 114,46 timer period is possible to simulate in user space? Whether the time will give me the proper resolution ? Theoretically it should provide 1 ns resolution.
View 3 Replies
View Related
Nov 3, 2010
I could not number formula in Open Office writer relative to a chapter. I would like to numbering like 1.1, 1.2, 1.2. 2.1 etc. Is it possible. I searched in Helps, but doesn't found anything!
View 1 Replies
View Related
Nov 18, 2010
Is there any way to implement a simple ping script in C (unix)? I'm programming simple OpenWRT scripts.
I have found some examples of ping in C:
[URL]
However, nothing happens, nothing is sent.
When I look at the code, in the portion where the socket is created, I can see that the socket is not binding to any interface:
Code:
if ((sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)) == -1)
{
perror("socket");
exit(EXIT_FAILURE);
}
setsockopt(sockfd, IPPROTO_IP, IP_HDRINCL, &optval, sizeof(int));
Instead, it uses "setsockopt" to set some options.
My guess is that it is trying to send packets over the eth0 interface instead over the wl0 (wireless) interface (which is the one I want to use to send pings).
Now, my question is: Is there any other way to send pings in C by binding to an interface?
View 1 Replies
View Related
Apr 26, 2011
I have a php scriptI want it to ping list of ips from a databse(using fping) and based on the status of the values to put them in a field(status) into the database(0 if down,1 if up)i executed tghe script and it gives me this error:Thread 1 - 17:51:01 26-04-2011 4.2.2.2 alive Couldn't execute query.I cant see what 's wrongthis is the source of the php script:
<?php
require_once("conf.php");
$connection1 = mysql_connect($h, $u, $p) or die("Couldn't connect.");
[code]....
View 1 Replies
View Related
Jul 27, 2010
I would like to ping all my virtual hosts in virtual machine server with a oneliner. For example like this:
Code:
for i in $(seq 1 20); do if [[ $(ping host$i.virtualhostserver.com -c 2 2>/dev/null | grep "2 received") == "2 packets transmitted" ]]; then echo $i; fi; done
The problem is, that I'm afraid my if-sentence is somewhat wrong because it never gets a match even if I know, that host is up.
View 5 Replies
View Related
Feb 16, 2010
I can't get exec ping to work on my system. wish is located in /usr/bin/wish8.4
Code:
#!/usr/bin/wish8.4
text .txt
set in [open "/root/hosts.txt" r]
while {[gets $in line] != -1} {
[Code]....
View 2 Replies
View Related
Sep 15, 2010
Now I am using ping command following
ping -I eth1 192.168.1.17
I want to add to shell script but I want type myself -I and eth1 when running the bash file.
View 9 Replies
View Related
Jan 24, 2011
do have installed glib and dbus and can find them manually , /usr/include/glib-2.0/glib.h , but while comipling applicaiton it gives following error messages.
/usr/include/libosso.h:32:18: error: glib.h: No such file or directory
/usr/include/libosso.h:38:23: error: dbus/dbus.h: No such file or directory
/usr/include/libosso.h:39:32: error: dbus/dbus-protocol.h: No such file or directory
View 1 Replies
View Related
Mar 4, 2010
I'm trying to do the following. from a php webpage click on a link, that opens a shell/cmd and runs an open ping to the device. so it must actually open a shell (for linux) or cmd (for windows) and run a ping to the specified ip. Currently i'm running an exec command, but for this i need to wait for the result to be fetched and print it out. I want to monitor it in realtime, by just clickingon the button. How to get this working?
View 1 Replies
View Related
Jun 29, 2010
Is it possible to create threads in BASH? I need a script with will ping a network to find out unused IP. in a for or while loop the pinging process is taking a very long time. I was wondering if it is possible to send multiple ping on the same time so this will speed up the scanning process.
View 5 Replies
View Related
Jun 14, 2011
I am new to linux and am trying to write a script that will ping IP addresses and say either online or unavailable.
View 3 Replies
View Related