14.08.2013 Views

snap ethernet-based i/o units protocols and programming guide

snap ethernet-based i/o units protocols and programming guide

snap ethernet-based i/o units protocols and programming guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 3: USING THE SNAP ETHERNET I/O DRIVER TOOLKIT<br />

OnStreamEvent<br />

long nIPAddress<br />

long nStatus<br />

ActiveX Event Description<br />

78 SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide<br />

This event is called whenever a stream packet is<br />

received or an error occurs.<br />

The nIPAddress parameter contains the IP<br />

address of the brain that this event concerns.<br />

The nStatus parameter contains a status code<br />

from the Return Values table on page 61. Possible<br />

values are:<br />

SIOMM_OK (0): means that the stream packet is<br />

good <strong>and</strong> should be retrieved with one of the<br />

methods above.<br />

SIOMM_TIME_OUT (-2): means that a stream<br />

packet has not been received within the amount of<br />

time specified in the StartStreamListening()<br />

method. This is not necessarily a serious problem.<br />

Depending upon the application, it can perhaps<br />

ignore this event <strong>and</strong> continue waiting for the next<br />

packet.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!