Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    November 2017
    Location
    France
    Posts
    18

    Solved Alternative way to create channel

    Finally, after setting up channel parameters, create the channel in one step with

    unsigned int ts3server_createChannel( serverID,
    channelCreationParams,
    flags,
    result);
    uint64 serverID;
    struct TS3ChannelCreationParams* channelCreationParams;
    enum ChannelCreateFlags flags;
    uint64* result;


    channelCreationParams

    Address of the struct TS3ChannelCreationParams with the creation parameters for this .

    flags

    Defines if the channel password is passed as plaintext or already encrypted. If already encrypted, this is the password retrieved via the channel variable CHANNEL_PASSWORD, which is returned as encrypted password. In this case you would specify the password on channel creation as already encrypted to avoid it being encrypted automatically a second time.

    enum ChannelCreateFlags{
    CHANNEL_CREATE_FLAG_NONE = 0x000,
    CHANNEL_CREATE_FLAG_PASSWORDS_ENCRYPTED = 0x001,
    };
    result

    Address to be filled with the created channel ID.
    Documentation source page

    Is the return value 'result' be the channelID ?

    With this way to create a channel, we have to give it a channelID :
    Code:
    	// Set essential parameters are channel parent ID and channel ID
    	if (ts3server_setChannelCreationParams(*_channelCreationParams, channelParentID, channelID) != ERROR_ok) {
    		throw std::runtime_error("An error occured : set channel creation params failed.");
    	}
    Can I mix the two effects by giving 0 at channelID param and after flush (and channel created) retreive the channelID given by the server.
    Last edited by Vincent_Stormancer; January 22nd, 2018 at 02:29 PM. Reason: resolved status

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to create a channel that create sup channel on join?
    By ThunderNRW in forum Server Support
    Replies: 0
    Last Post: June 1st, 2015, 10:00 PM
  2. Create an alternative Server
    By Oneiros in forum General Questions
    Replies: 3
    Last Post: September 2nd, 2014, 08:29 PM
  3. Replies: 4
    Last Post: December 14th, 2013, 09:17 PM
  4. Better alternative to channel commander
    By Salah ad Din in forum Suggestions and Feedback
    Replies: 1
    Last Post: March 21st, 2010, 05:49 PM

Tags for this Thread

Posting Permissions

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