Download SCCT User Manual - Tools for Smart Minds
Transcript
o authentication successful, occurs when a new connection is properly established. Is a remote device tries to connect, but its connection parameters are not correct and connection is refused, this event is not generated. o conn closed by client, occurs when a client terminates connection. o timeout expired, occurs when a connection is lost abnormally, for example when communication channel fails. In this situation your application cannot be sure that all transmitted packets have been received by client associated to aborted connection. • senderAddress is the address of new subscriber, in the form IpAddress:port. Use availableEventCount property node to check is new events have been generated. When a new event is present you can extract it from its event Queue with getEvent.vi method as shown in the following figures. F IGURE 42 – E NABLING THE REQUEST FIFO WITH ENABLE E VENT L OGGING PROPERTY NODE .. As shown above, instead of property node you can set the flag “enableLogging” with enableLogging.vi and get its value with isEventLoggingEnabled.vi, respectively Events are useful when your application keeps track of existing connections and must execute special tasks when a new connection is established or an existing one is closed. Below you see a simple example: a welcome message is sent only to new connected applications. senderAddress is the address associated to the connection that generated the event. 49