net. Object

The net. object icon.

The net. object of TiOS running on Tibbo hardware facilitates network communications via the hardware Ethernet port (if available).

The net. object of the TiOS Simulator facilitates network communications via the WinPcap driver, which taps into the low-level network traffic of your PC's Ethernet port.


It is important to realize that, as far as the net. object and sock. object are concerned, the TiOS Simulator does not rely on Windows sockets. TiOS has its own sockets implementation, so it requires a channel to receive and send MAC-level Ethernet packets into and out of its own socket system. This channel is provided by the WinPcap driver.


Several important points follow from the use of the WinPcap driver:


For more information see Network Communications in the TiOS Simulator.


Differences from the "real" net. object:

net.mac

Always equal to the MAC address of the host PC. The MAC cannot be changed even using Device Explorer's Change MAC feature.

net.failure

Always returns 0 — NO.

net.linkstate

On each TiOS Simulator's (re)start, changes from 0 — PL_NET_LINKSTAT_NOLINK to 2 — PL_NET_LINKSTAT_100BASET, regardless of the actual state of the Ethernet link.

on_net_link_change

Always happens once after the TiOS Simulator (re)starts.

on_net_overrun

Never happens.


All other aspects of the TiOS SImulator's net. object follow our "real" net. object found on several Tibbo devices.