Platform SDK: Broadcast Architecture

Making the Connections

Before sending any data, it is necessary to establish the connections with the VBI Inserter or the NIC, depending on which type of object you are using. This is done by calling IATVEFSend::Connect.

The Connect method establishes separate connections for announcements, triggers, and packages, since each may have its own IP address and/or port. The announcement connection remains open for the life of the inserter or multicast object (whichever one you are using), but the trigger and package connections are disconnected whenever an announcement is modified in any way. After you modify the announcement, you may send it at any time with SendAnnouncement, but you must call Connect to reestablish the trigger and package connections before calling SendPackage or SendTrigger. These methods will return an error code if you attempt to call them while no connection exists, that is, after modifying an announcement but before calling Connect.