All Classes Namespaces Files Functions Pages
Tutorial: 2. Connect to ByteBlower Servers

Previous: Tutorial: 1. Loading the ByteBlower API

Once the API's are loaded, we can continue with our next step: connecting to the ByteBlower Server.

To do this, we create a ByteBlower server Object. Once this object is created, we have a connection to our server.

Creating the ByteBlowerServer object is done through the ByteBlower API entry point, the ByteBlower object. The parameter after Server.Add can be the IP address of your ByteBlower server or even its FQDN.

1 set bbServer [ ByteBlower Server.Add ]

The variable $bbServer now holds our ByteBlowerServer object.

If you want, you can print out the description of this server object with following command.

1 puts [ $bbServer Description.Get ]

Every ByteBlower object has a method Description.Get . This method will print out all information known about this object. This information will be printed in a hierachical way. So if you ask the description of a server, you will get the description of every ByteBlowerPort, which will print out the description of every Stream on that port... and so on.

Further reading: Tutorial: 3. Create our src-port and dst-port