Community Forums Today's Posts     Member List     Archive    
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2010

    ts3client_getChannelIDFromChannelNames() Question

    Can you please give more information on how this function works? Specifically, suppose I give a set of names for which a channel does not exist. Testing this function, the return value is ERROR_ok, but the channelID returned is 0. Is this the expected behavior? Can I use a channelID of 0 to indicate no channel exists? If so, I'd suggest you improve the documentation to reflect this.

  2. #2
    Join Date
    Jun 2008
    Krün, Germany
    This function is used to translate channel path strings into a channel ID.

    A channel path is the channel name including the parent channels if it is a subchannel:
    "Root level channel", "Root level Channel / Second level subchannel / Third level subchannel".

    The channelNameArray parameter would then contain each part of above string separated by "/" plus a terminating empty string ("").
    e.G. { "Root level channel", "Second level subchannel", "Third level subchannel", "" }

    If that channel exists, the clientlib will return the channel ID. If 0, the channel was not found.

    The usage of this feature in the TeamSpeak client is to restore the default channel stored as text in bookmarks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question!
    By SnakeBite in forum Linux / FreeBSD
    Replies: 1
    Last Post: 18-05-2010, 10:28
  2. Question
    By tbarlow in forum [TeamSpeak 2] Server Support
    Replies: 1
    Last Post: 17-02-2007, 17:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts