msg_send
Previous Topic  Next Topic 

Synopsis: 

       result=msg_send(task_name/task_id,msg_str);


Arguments: 

       task_name/task_id - Either the task name or the Telecom Engine Task ID of the task to send the message to

       msg_str - The message to send


Description:  This function sends a message to the task specified be the task_name/task_id.     If a task calls the msg_setnname() function then this name can be used to identify the task, otherwise the Telecom Engine task ID (as returned from task_spawn() or task_getpid()) should be used.


If the task_name/task_id does not exist then the function will return -1.



Returns:   Returns 0 if successful or -1 if an invalid task_name/task_id wa specified.