[ns] errors when include god.h

2010-09-07 Thread Nourideen

Hi,

i wish to use IsNeighbor() function in agent.cc
but when i include god.h: #include god.h
i get the following errors:
In file included from ./nix/nixnode.h:9,
 from common/agent.cc:57:
./routealgo/rnode.h:52: error: expected init-declarator before '' token
./routealgo/rnode.h:52: error: expected `,' or `;' before '' token
./routealgo/rnode.h:53: error: `RNodeVec_t' has not been declared
./routealgo/rnode.h:53: error: expected init-declarator before RNodeVec_it
./routealgo/rnode.h:53: error: expected `,' or `;' before RNodeVec_it
./routealgo/rnode.h:60: error: expected init-declarator before '' token
./routealgo/rnode.h:60: error: expected `,' or `;' before '' token
./routealgo/rnode.h:61: error: `RoutingVec_t' has not been declared
./routealgo/rnode.h:61: error: expected init-declarator before
RoutingVec_it
./routealgo/rnode.h:61: error: expected `,' or `;' before RoutingVec_it
./routealgo/rnode.h:64: error: expected init-declarator before '' token
./routealgo/rnode.h:64: error: expected `,' or `;' before '' token
./routealgo/rnode.h:65: error: `DistVec_t' has not been declared
./routealgo/rnode.h:65: error: expected init-declarator before DistVec_it
./routealgo/rnode.h:65: error: expected `,' or `;' before DistVec_it
In file included from common/agent.cc:57:
./nix/nixnode.h:21: error: expected init-declarator before '' token
./nix/nixnode.h:21: error: expected `,' or `;' before '' token
./nix/nixnode.h:22: error: `EdgeVec_t' has not been declared
./nix/nixnode.h:22: error: expected init-declarator before EdgeVec_it
./nix/nixnode.h:22: error: expected `,' or `;' before EdgeVec_it
./nix/nixnode.h:24: error: expected init-declarator before '' token
./nix/nixnode.h:24: error: expected `,' or `;' before '' token
./nix/nixnode.h:25: error: `ObjVec_t' has not been declared
./nix/nixnode.h:25: error: expected init-declarator before ObjVec_it
./nix/nixnode.h:25: error: expected `,' or `;' before ObjVec_it
./nix/nixnode.h:51: error: `EdgeVec_t' does not name a type
./nix/nixnode.h:52: error: `ObjVec_t' does not name a type

line 57 consists of (i haven't changed these files):
#ifdef HAVE_STL
#include nix/hdr_nv.h
#include nix/nixnode.h
#endif //HAVE_STL


anyone have any ideas what the issue is.
i urgently need to resolve this. many thanks

nouri


Re: [ns] Fwd: manipulate a specific node

2010-09-05 Thread Nourideen

Hi, any ideas on this, i urgently need help with this. Thanks

nouride...@gmail.com wrote:

 I have created a set of nodes using the tcl script file, but i want to be
 able to manipulate a specific node in the c++ implementation, how can this
 be done
 for example i want to check if node_(0) has received a packet or i want to
 modify only a single specific node, node_(0). thanks you

 Nouri



[ns] Fwd: manipulate a specific node

2010-09-04 Thread Nourideen

I have created a set of nodes using the tcl script file, but i want to be
able to manipulate a specific node in the c++ implementation, how can this
be done
for example i want to check if node_(0) has received a packet or i want to
modify only a single specific node, node_(0). thanks you

Nouri



-- 
Regards,

Nourideen


[ns] Data Packet Queries

2010-08-23 Thread Nourideen A

Hi,

I have a question regarding querying data in ns-2.
I have generated random CBR traffic in the network and have managed to store
data packets in nodes by modifying the Agent class.
Does ns-2 allow a node to send out queries for packets in the network?
Also what would be the best way to implement queries for this data?
Thanks
-- 
Regards,

Nourideen


[ns] invalid command name Agent/GPSR

2010-07-29 Thread Nourideen A

Hi, Im getting issues when adding the GPSR Agent , I keep getting these
errors:

$ ns hls.tcl

invalid command name Agent/GPSR

while executing

Agent/GPSR set bdesync_0.5 

(file hls.tcl line 6)

Thanks.


[ns] Generate Events / Queries

2010-07-26 Thread Nourideen A

How does a node generate an event in ns-2.
Also how are queries sent out in the network. Thanks

-- 
Regards,

Nourideen


[ns] Copying Data

2010-07-23 Thread Nourideen A

Hi all,

I was wondering how I can copy data stored in a node to be copied to a
another node nearby. Any advice in being able to copy data would be useful.

-- 
Thanks,

Nourideen


[ns] DIM:GPSR errors

2010-07-22 Thread Nourideen A

Hi all,

Iam trying to implement GPSR using DIM from this website:
http://enl.usc.edu/projects/dim/ . I have copied all the files into the ns
directory, but I having trouble when I compile index.tcl ,using ns-2 2.29. I
think i have updated the makefile properly but I cant seem to find the
issue. I would appreciate any feedback in solving this issue. Thanks.  I get
the following errors:

 $ index.tcl
load_flatgrid 56 56
num_nodes is set 10

(_o14 cmd line 1)
invoked from within
_o14 cmd addr
invoked from within
catch $self cmd $args ret
invoked from within
if [catch $self cmd $args ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error error when calling class $cls: $args $...
(procedure _o14 line 2)
(SplitObject unknown line 2)
invoked from within
_o14 addr
(eval body line 1)
invoked from within
eval $node addr $args
(default arm line 2)
invoked from within
switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 $node start-dsr
}
AODV {
set ragent [$self cre...
(procedure _o3 line 11)
(Simulator create-wireless-node line 11)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns node
(for body line 3)
invoked from within
for {set i 0} {$i  $opt(nn)} {incr i} {
# debug 1
set node($i) [$ns node]
  #$ldb register [$node($i) address?] $node($i)
  #[$node($i) set agents_...
(file dim_original.tcl line 98)

Regards,

Nourideen