NS2 Ultimate
C++ and OTcl Linkage: OTcl Commands — Getting Started

Note: The content in this series is extracted from the book, Introduction to Network Simulator NS2. You may have to read chapter 3 of the book for better understanding.

OTcl Command — Getting Started View more presentations from Teerawat Issariyakul.


Introduction

This post covers the fourth topic in the series on C++ and OTcl Linkage:

1. Why Two Languages?
2. Binding C++ and OTcl classes [Main steps, The mechanism]
3. Variable binding
4. OTcl command: Invoking C++ statements from the OTcl domain [ Getting Started, Invocation process, Binding OTcl and C++ ]
5. Eval: Invoking OTcl statements from the C++ domain
6. Result: Passing Values between C++ and OTcl domains
7. Object binding and the shadow object construction process.


In the previous post, I blogged about how C++ and OTcl classes are bound together. In this post, I will explain how to bind C++ and OTcl class variable together.

======================================================

Source: T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”, Springer 2011. Buy it now from Amazon:

  

You may also find lecture notes and other resource at the following website:http://www.ece.ubc.ca/~teerawat/NS2.htm