When a message is scoped to a session, only those applications that have connected to that session are considered as potential recipients.
Tt_message m= tt_message_create(); tt_message_scope_set(m, TT_SESSION); tt_message_file_set(m, file); |
The first line creates message. The second line adds scope to message, and the last line adds file attribute that does not affect message scope.