I've created a simple client based on inet.networklayer, tcp and
TCPBasicClientApp.
The connection section of my .ned is this:
...
eth0.phys <--> io;
eth0.netwOut --> networkLayer.ifIn++;
networkLayer.ifOut++ --> eth0.netwIn;
networkLayer.TCPOut --> tcp.ipIn;
tcp.ipOut --> networkLayer.tcpIn;
tcp.appOut++ --> tcpBasicClientApp.tcpIn;
tcpBasicClientApp.tcpOut --> tcp.appIn++;
...
I only use tcp, no udp, sctp... when I try to start the simulation, I
got errors about
unconnected gates for udp, sctp... but in the .ned for the
networklayer the connections
for these gates are defined with attribut allowunconnected. I've added
a @loose to
all the gates but if[in|out] - that works for me. Did I miss
something, is this a bug or
a feature? Why using allowunconnected if it can't override/replace a
missing @loose attribute
in the gates section?
Btw: I'm new to Omnetpp, using the inet-fw (20090325) together with
omnet v4.0 build 090310-10709.
thanks for your help in advance, hecke
"allowunconnected" is used in a compound module, and means that unconnected gates may exist *within* the compound module. I.e. it allows its submodules' gates to be left unconnected (on their outside), and the compound module's gates to be left unconnected *inside*.
@loose means that if you use that module as a submodule somewhere, that gate doesn't need to be connected. I.e. it refers to *outside* connection of the gate.
If you wonder about inside and outside, picture the compound module as a large box, and a gate as two sockets, one facing inside and the other facing outside.
Andras
--
You received this message because you are subscribed to the Google Groups
"omnetpp" group.
To post to this group, send email to omn...@googlegroups.com.
To unsubscribe from this group, send email to
omnetpp+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/omnetpp?hl=en.