Client/Server Commands

This section contains the list of commands which can be issued by the client instance to the server. More...

Functions

int BearWare::TeamTalk4.DoLogin (string szNickname, string szServerPassword, string szUsername, string szPassword)
 Logon to a server.
int BearWare::TeamTalk4.DoLogout ()
 Logout of the server.
int BearWare::TeamTalk4.DoJoinChannel (Channel lpChannel)
 Create a new channel and join it. This command requires that the flag UserRight.USERRIGHT_CHANNEL_CREATION is set in uUserRights of BearWare.ServerProperties.
int BearWare::TeamTalk4.DoJoinChannelByID (int nChannelID, string szPassword)
 Join an existing channel.
int BearWare::TeamTalk4.DoLeaveChannel ()
 Leave the current channel.
int BearWare::TeamTalk4.DoChangeNickname (string szNewNick)
 Change the client instance's nick name.
int BearWare::TeamTalk4.DoChangeStatus (int nStatusMode, string szStatusMessage)
 Change the client instance's currect status.
int BearWare::TeamTalk4.DoTextMessage (TextMessage lpTextMessage)
 Send a text message to either a user or a channel.
int BearWare::TeamTalk4.DoChannelOp (int nUserID, int nChannelID, bool bMakeOperator)
 Make another user operator of a channel.
int BearWare::TeamTalk4.DoChannelOpEx (int nUserID, int nChannelID, string szOpPassword, bool bMakeOperator)
 Make another user operator of a channel using the szOpPassword of BearWare.Channel.
int BearWare::TeamTalk4.DoKickUser (int nUserID, int nChannelID)
 Kick user out of channel.
int BearWare::TeamTalk4.DoSendFile (int nChannelID, string szLocalFilePath)
 Send a file to the specified channel.
int BearWare::TeamTalk4.DoRecvFile (int nChannelID, int nFileID, string szLocalFilePath)
 Download a file from the specified channel.
int BearWare::TeamTalk4.DoDeleteFile (int nChannelID, int nFileID)
 Delete a file from a channel.
int BearWare::TeamTalk4.DoSubscribe (int nUserID, Subscription uSubscriptions)
 Subscribe to user events and/or data.
int BearWare::TeamTalk4.DoUnsubscribe (int nUserID, Subscription uSubscriptions)
 Unsubscribe to user events/data. This can be used to ignore messages or voice data from a specific user.
int BearWare::TeamTalk4.DoMakeChannel (Channel lpChanInfo)
 Make a static (persistent) channel.
int BearWare::TeamTalk4.DoUpdateChannel (Channel lpChanInfo)
 Update a channel's properties.
int BearWare::TeamTalk4.DoRemoveChannel (int nChannelID)
 Remove a channel from a server.
int BearWare::TeamTalk4.DoMoveUser (int nUserID, int nChannelID)
 Issue command to move a user from one channel to another.
int BearWare::TeamTalk4.DoUpdateServer (ServerProperties lpServerInfo)
 Update server properties.
int BearWare::TeamTalk4.DoListUserAccounts (int nIndex, int nCount)
 Issue command to list user accounts on the server.
int BearWare::TeamTalk4.DoNewUserAccount (UserAccount lpUserAccount)
 Issue command to create a new user account on the server.
int BearWare::TeamTalk4.DoDeleteUserAccount (string szUsername)
 Issue command to delete a user account on the server.
int BearWare::TeamTalk4.DoBanUser (int nUserID)
 Issue a ban command on a user in a specific channel.
int BearWare::TeamTalk4.DoUnBanUser (string szIpAddress)
 Unban the user with the specified IP-address.
int BearWare::TeamTalk4.DoListBans (int nIndex, int nCount)
 Issue a command to list the banned users.
int BearWare::TeamTalk4.DoSaveConfig ()
 Save the server's current state to its settings file (typically the server's .xml file).
int BearWare::TeamTalk4.DoQueryServerStats ()
 Get the server's current statistics obtained through TeamTalk4.GetServerStatistics().
int BearWare::TeamTalk4.DoQuit ()
 Quit from server.

Detailed Description

This section contains the list of commands which can be issued by the client instance to the server.

Client/Server Command Processing

Functions with the prefix Do* are commands which the client can issue to the server. Every Do* function returns a command identifier which can user application can use to check when the server has finished processing the issued command. Once the client receives a response to a command the client instance posts the event TeamTalk4.OnCmdProcessing() to the user application containing the command identifier and whether the command is being processed or it has completed.

As an example, say the user application wants to issue the TeamTalk4.DoLogin() command. When the application calls TeamTalk4.DoLogin() the returned command ID is stored in a variable. The application then waits for the TeamTalk4.OnCmdProcessing() event to be posted with the stored command ID. The first time TeamTalk4.OnCmdProcessing() is posted to the user application it is to say that processing has begun. The second time TeamTalk4.OnCmdProcessing() is called it is to say that the command has completed. In between the command starting and completing several other events may take place. If e.g. the TeamTalk4.DoLogin() fails the user application would receive the event TeamTalk4.OnCmdError(). If on the other hand the command was successful all the channels and user would be posted as events to the application before the login-command completed processing.


Function Documentation

int BearWare.TeamTalk4.DoLogin ( string  szNickname,
string  szServerPassword,
string  szUsername,
string  szPassword 
) [inherited]

Logon to a server.

Once connected to a server call this function to logon. If the login is successful OnCmdMyselfLoggedIn is posted, otherwise OnCmdError. Once logged on it's not possible to talk to other users until the client instance joins a channel. Call DoJoinChannel to join a channel.

Possible errors:

  • ClientError.CMDERR_INCORRECT_CHANNEL_PASSWORD
  • ClientError.CMDERR_INVALID_ACCOUNT
  • ClientError.CMDERR_MAX_SERVER_USERS_EXCEEDED
  • ClientError.CMDERR_SERVER_BANNED
  • ClientError.CMDERR_ALREADY_LOGGEDIN
Parameters:
szNickname The nickname to use.
szServerPassword The server's password. Leave empty if user has account on the server.
szUsername If UserRight.USERRIGHT_GUEST_LOGIN is disabled a username and password must be specified in order to login. Leave blank if guest logins are ok.
szPassword The password of the user account on the server. Leave blank if no account is needed on the server.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
UserRight.USERRIGHT_GUEST_LOGIN
BearWare.ServerProperties
TeamTalk4.DoJoinChannel
OnCmdMyselfLoggedIn
OnCmdError
int BearWare.TeamTalk4.DoLogout (  )  [inherited]

Logout of the server.

If successful the event OnCmdMyselfLoggedOut will be posted.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
OnCmdMyselfLoggedOut
int BearWare.TeamTalk4.DoJoinChannel ( Channel  lpChannel  )  [inherited]

Create a new channel and join it. This command requires that the flag UserRight.USERRIGHT_CHANNEL_CREATION is set in uUserRights of BearWare.ServerProperties.

This function can also be used to join an existing channel and in this case the parameters szTopic and szOpPassword are ignored.

When DoJoinChannel is used to create channels it works similar to IRC. If the client instance tres to join a channel which does not exist it will be created as a new channel. If the client instance is the last user to leave a channel the channel will be removed on the server. Only administrators can create static (persistent) channels, namely by using DoMakeChannel.

If the channel is created successfully the event OnCmdChannelNew will be sent, followed by OnCmdMyselfJoinedChannel.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_INCORRECT_CHANNEL_PASSWORD
  • ClientError.CMDERR_MAX_CHANNEL_USERS_EXCEEDED
  • ClientError.CMDERR_ALREADY_IN_CHANNEL
  • ClientError.CMDERR_AUDIOCODEC_BITRATE_LIMIT_EXCEEDED
  • ClientError.CMDERR_UNKNOWN_AUDIOCODEC If the server doesn't support the audio codec. Introduced in version 4.1.0.1264.
Parameters:
lpChannel The channel to join or create if it doesn't already exist.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoLeaveChannel
DoMakeChannel
OnCmdChannelNew
OnCmdMyselfJoinedChannel
int BearWare.TeamTalk4.DoJoinChannelByID ( int  nChannelID,
string  szPassword 
) [inherited]

Join an existing channel.

This command basically calls DoJoinChannel but omits the unnecessary parameters for only joining a channel and not creating a new one.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_INCORRECT_CHANNEL_PASSWORD
  • ClientError.CMDERR_MAX_CHANNEL_USERS_EXCEEDED
  • ClientError.CMDERR_ALREADY_IN_CHANNEL
Parameters:
nChannelID The ID of the channel to join.
szPassword The password for the channel to join.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoLeaveChannel
DoMakeChannel
OnCmdChannelNew
OnCmdMyselfJoinedChannel
int BearWare.TeamTalk4.DoLeaveChannel (  )  [inherited]

Leave the current channel.

Note that DoLeaveChannel() doesn't take any parameters since a user can only participate in one channel at the time. If command is successful the event OnCmdMyselfLeftChannel will be posted.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_NOT_IN_CHANNEL
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoJoinChannel
OnCmdMyselfLeftChannel
int BearWare.TeamTalk4.DoChangeNickname ( string  szNewNick  )  [inherited]

Change the client instance's nick name.

The event OnCmdUserUpdate will be posted if the update was successful.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
Parameters:
szNewNick is the new nick name to use.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
OnCmdUserUpdate
int BearWare.TeamTalk4.DoChangeStatus ( int  nStatusMode,
string  szStatusMessage 
) [inherited]

Change the client instance's currect status.

The event OnCmdUserUpdate will be posted if the update was successful.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
Parameters:
nStatusMode The value for the status mode.
szStatusMessage The user's message associated with the status mode.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
OnCmdUserUpdate
int BearWare.TeamTalk4.DoTextMessage ( TextMessage  lpTextMessage  )  [inherited]

Send a text message to either a user or a channel.

Can also be a broadcast message which is received by all users on the server.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_USER_NOT_FOUND
Parameters:
lpTextMessage A preallocated text-message struct.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
UserRight.USERRIGHT_CLIENT_BROADCAST
int BearWare.TeamTalk4.DoChannelOp ( int  nUserID,
int  nChannelID,
bool  bMakeOperator 
) [inherited]

Make another user operator of a channel.

Requires that the client instance must already be operator of the channel or is logged in as an administrator.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_USER_NOT_FOUND
Parameters:
nUserID The user who should become channel operator.
nChannelID The channel where the user should become operator
bMakeOperator Whether user should be op'ed or deop'ed
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoChannelOpEx
int BearWare.TeamTalk4.DoChannelOpEx ( int  nUserID,
int  nChannelID,
string  szOpPassword,
bool  bMakeOperator 
) [inherited]

Make another user operator of a channel using the szOpPassword of BearWare.Channel.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_USER_NOT_FOUND
  • ClientError.CMDERR_INCORRECT_OP_PASSWORD
Note:
Requires server version 4.1.0.994 or later.
Parameters:
nUserID The user who should become channel operator.
nChannelID The channel where the user should become operator.
szOpPassword The szOpPassword of BearWare.Channel.
bMakeOperator Whether user should be op'ed or deop'ed.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoChannelOp
int BearWare.TeamTalk4.DoKickUser ( int  nUserID,
int  nChannelID 
) [inherited]

Kick user out of channel.

Only a channel operator or administration can kick users. To ban a user call DoBanUser before DoKickUser.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_USER_NOT_FOUND
Parameters:
nUserID The ID of the user to kick.
nChannelID The channel where the user is participating. If local instance is admin and nChannelID is 0, the user will be kicked off the server.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoBanUser
int BearWare.TeamTalk4.DoSendFile ( int  nChannelID,
string  szLocalFilePath 
) [inherited]

Send a file to the specified channel.

If user is logged on as an admin the file can be located in any channel. If the user is not an admin the file must be located in the same channel as the user is currently participating in. The file being uploaded must have a file size which is less than the disk quota of the channel, minus the sum of all the files in the channel. The disk quota of a channel can be obtained in the nDiskQuota of the BearWare.Channel struct passed to GetChannel.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_MAX_DISKUSAGE_EXCEEDED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_FILETRANSFER_NOT_FOUND
  • ClientError.CMDERR_OPENFILE_FAILED
  • ClientError.CMDERR_FILE_NOT_FOUND
  • ClientError.CMDERR_FILE_ALREADY_EXISTS
  • ClientError.CMDERR_FILESHARING_DISABLED
Parameters:
nChannelID The ID of the channel of where to put the file. Only admins can upload in channel other then their own.
szLocalFilePath The path of the file to upload, e.g. C:\myfile.txt.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
Channel
GetChannel
int BearWare.TeamTalk4.DoRecvFile ( int  nChannelID,
int  nFileID,
string  szLocalFilePath 
) [inherited]

Download a file from the specified channel.

If user is logged on as an admin the file can be located in any channel. If the user is not an admin the file must be located in the same channel as the user is currently participating in.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_FILETRANSFER_NOT_FOUND
  • ClientError.CMDERR_OPENFILE_FAILED
  • ClientError.CMDERR_FILE_NOT_FOUND
  • ClientError.CMDERR_FILESHARING_DISABLED
Parameters:
nChannelID The ID of the channel of where to get the file. Only admins can download in channel other then their own.
nFileID The ID of the file which is passed by OnCmdFileNew.
szLocalFilePath The path of where to store the file, e.g. C:\myfile.txt.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
OnCmdFileNew
GetChannelFiles
int BearWare.TeamTalk4.DoDeleteFile ( int  nChannelID,
int  nFileID 
) [inherited]

Delete a file from a channel.

A user is allowed to delete a file from a channel if either the user is an admin, operator of the channel or owner of the file. To be owner of the file a user must have a BearWare.UserAccount on the server.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_FILE_NOT_FOUND
Parameters:
nChannelID The ID of the channel where the file is located.
nFileID The ID of the file to delete. The ID of the file which is passed by OnCmdFileNew.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
OnCmdFileNew
GetChannelFiles
int BearWare.TeamTalk4.DoSubscribe ( int  nUserID,
Subscription  uSubscriptions 
) [inherited]

Subscribe to user events and/or data.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_SUBSCRIPTIONS_DISABLED
  • ClientError.CMDERR_USER_NOT_FOUND
Parameters:
nUserID The ID of the user this should affect.
uSubscriptions Union of Subscription to subscribe to.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
Subscription
int BearWare.TeamTalk4.DoUnsubscribe ( int  nUserID,
Subscription  uSubscriptions 
) [inherited]

Unsubscribe to user events/data. This can be used to ignore messages or voice data from a specific user.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_SUBSCRIPTIONS_DISABLED
  • ClientError.CMDERR_USER_NOT_FOUND
Parameters:
nUserID The ID of the user this should affect.
uSubscriptions Union of Subscription to unsubscribe.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
Subscription
int BearWare.TeamTalk4.DoMakeChannel ( Channel  lpChanInfo  )  [inherited]

Make a static (persistent) channel.

This command only works for admins since it creates a persistent channel on the server which will be stored in the server's config file.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_ALREADY_EXISTS
  • ClientError.CMDERR_CHANNEL_NOT_FOUND If channel's combined path is longer than TeamTalk4.TT_STRLEN.
  • ClientError.CMDERR_INCORRECT_CHANNEL_PASSWORD If the password is longer than TeamTalk4.TT_STRLEN.
  • ClientError.CMDERR_UNKNOWN_AUDIOCODEC If the server doesn't support the audio codec. Introduced in version 4.1.0.1264.
Parameters:
lpChanInfo A Channel-structure containing information about the channel being created. The Channel's member nChannelID is ignored.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoJoinChannel
int BearWare.TeamTalk4.DoUpdateChannel ( Channel  lpChanInfo  )  [inherited]

Update a channel's properties.

Admin and operators of channel can update a channel's properties. Note that a channel's BearWare.AudioCodec cannot be changed if there's currently users in the channel.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_CHANNEL_HAS_USERS
Parameters:
lpChanInfo A Channel-structure containing information about the channel being modified. The channel member's nParentID and szName are ignored.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoMakeChannel
int BearWare.TeamTalk4.DoRemoveChannel ( int  nChannelID  )  [inherited]

Remove a channel from a server.

This command only applies to admins.

If there's any users in the channel they will be kicked and subchannels will be deleted as well.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
Parameters:
nChannelID The ID of the channel to remove.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoMakeChannel
int BearWare.TeamTalk4.DoMoveUser ( int  nUserID,
int  nChannelID 
) [inherited]

Issue command to move a user from one channel to another.

This command only applies to admins.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_USER_NOT_FOUND
Parameters:
nUserID User to be moved.
nChannelID Channel where user should be put into.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoMoveUserByID
int BearWare.TeamTalk4.DoUpdateServer ( ServerProperties  lpServerInfo  )  [inherited]

Update server properties.

This command only applies to admins.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_SERVER_HAS_USERS
Parameters:
lpServerInfo A structure holding the information to be set on the server.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
GetServerProperties
int BearWare.TeamTalk4.DoListUserAccounts ( int  nIndex,
int  nCount 
) [inherited]

Issue command to list user accounts on the server.

User accounts can be used to create different user types like e.g. administrators.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
Parameters:
nIndex Index of first user to display.
nCount The number of users to retrieve.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
UserAccount
UserType
GetUserAccounts
int BearWare.TeamTalk4.DoNewUserAccount ( UserAccount  lpUserAccount  )  [inherited]

Issue command to create a new user account on the server.

Check out section User Administration to see how the server handles users.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_INVALID_ACCOUNT
Parameters:
lpUserAccount The properties of the user account to create.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoListUserAccounts
DoDeleteUserAccount
UserAccount
UserType
int BearWare.TeamTalk4.DoDeleteUserAccount ( string  szUsername  )  [inherited]

Issue command to delete a user account on the server.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_ACCOUNT_NOT_FOUND
Parameters:
szUsername The username of the user account to delete.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoListUserAccounts
DoNewUserAccount
BearWare.UserAccount
BearWare.UserType
int BearWare.TeamTalk4.DoBanUser ( int  nUserID  )  [inherited]

Issue a ban command on a user in a specific channel.

The ban applies to the user's IP-address. Call DoKickUser to kick the user off the server. Only admins can ban users.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_CHANNEL_NOT_FOUND
  • ClientError.CMDERR_USER_NOT_FOUND
Parameters:
nUserID The ID of the user to ban.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoKickUser
DoListBans
int BearWare.TeamTalk4.DoUnBanUser ( string  szIpAddress  )  [inherited]

Unban the user with the specified IP-address.

Only admins can remove a ban.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_BAN_NOT_FOUND
Parameters:
szIpAddress The IP-address to unban.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoBanUser
DoListBans
int BearWare.TeamTalk4.DoListBans ( int  nIndex,
int  nCount 
) [inherited]

Issue a command to list the banned users.

Only admins can list bans. Once completed call the function GetBannedUsers to get the list of users.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
Parameters:
nIndex Index of first ban to display.
nCount The number of bans to display.
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
TeamTalk4.GetBannedUsers
int BearWare.TeamTalk4.DoSaveConfig (  )  [inherited]

Save the server's current state to its settings file (typically the server's .xml file).

Note that the server only saves channels with the flag ChannelType.CHANNEL_STATIC.

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
See also:
DoUpdateServer
int BearWare.TeamTalk4.DoQueryServerStats (  )  [inherited]

Get the server's current statistics obtained through TeamTalk4.GetServerStatistics().

Possible errors:

  • ClientError.CMDERR_NOT_LOGGEDIN
  • ClientError.CMDERR_NOT_AUTHORIZED
  • ClientError.CMDERR_UNKNOWN_COMMAND
Note:
Requires server version 4.1.0.1089 or later.
Returns:
Returns command ID which will be passed in OnCmdProcessing() event when the server is processing the command. -1 is returned in case of error.
int BearWare.TeamTalk4.DoQuit (  )  [inherited]

Quit from server.

Possible errors:

  • none

This will generate a OnConnectionLost since the server will drop the client.

Returns:
Returns command ID which will be passed in OnCmdProcessing event when the server is processing the command. -1 is returned in case of error.
Generated on Sun Mar 18 17:16:14 2012 for TeamTalk 4 .NET DLL by  doxygen 1.6.3