TeamTalk 5 C-API DLL: TeamTalkSrv.h Source File

TeamTalk 5 C-API DLL Version 5.18A

Loading...
Searching...
No Matches
TeamTalkSrv.h
Go to the documentation of this file.
1#if !defined(TEAMTALKSRVDLL_H)
2#define TEAMTALKSRVDLL_H
3
4/*
5 * BearWare.dk TeamTalk 5 SDK.
6 *
7 * Copyright 2005-2018, BearWare.dk.
8 *
9 * Read the License.txt file included with the TeamTalk 5 SDK for
10 * terms of use.
11 */
12
13#include "TeamTalk.h"
14
21#define TEAMTALK_SERVER_VERSION "5.18.0.5162"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31 typedef VOID TTSInstance;
32
51 typedef void UserLoginCallback(IN TTSInstance* lpTTSInstance,
52 IN VOID* lpUserData,
53 OUT ClientErrorMsg* lpClientErrorMsg,
54 IN const User* lpUser,
55 IN OUT UserAccount* lpUserAccount);
56
70 typedef void UserChangeNicknameCallback(IN TTSInstance* lpTTSInstance,
71 IN VOID* lpUserData,
72 OUT ClientErrorMsg* lpClientErrorMsg,
73 IN const User* lpUser,
74 IN const TTCHAR* szNewNickname);
75
90 typedef void UserChangeStatusCallback(IN TTSInstance* lpTTSInstance,
91 IN VOID* lpUserData,
92 OUT ClientErrorMsg* lpClientErrorMsg,
93 IN const User* lpUser,
94 IN INT32 nNewStatusMode,
95 IN const TTCHAR* szNewStatusMsg);
110 typedef void UserCreateUserAccountCallback(IN TTSInstance* lpTTSInstance,
111 IN VOID* lpUserData,
112 OUT ClientErrorMsg* lpClientErrorMsg,
113 IN const User* lpUser,
114 IN const UserAccount* lpUserAccount);
129 typedef void UserDeleteUserAccountCallback(IN TTSInstance* lpTTSInstance,
130 IN VOID* lpUserData,
131 OUT ClientErrorMsg* lpClientErrorMsg,
132 IN const User* lpUser,
133 IN const TTCHAR* szUsername);
147 typedef void UserAddServerBanCallback(IN TTSInstance* lpTTSInstance,
148 IN VOID* lpUserData,
149 OUT ClientErrorMsg* lpClientErrorMsg,
150 IN const User* lpBanner,
151 IN const User* lpBanee);
166 typedef void UserAddServerBanIPAddressCallback(IN TTSInstance* lpTTSInstance,
167 IN VOID* lpUserData,
168 OUT ClientErrorMsg* lpClientErrorMsg,
169 IN const User* lpBanner,
170 IN const TTCHAR* szIPAddress);
184 typedef void UserDeleteServerBanCallback(IN TTSInstance* lpTTSInstance,
185 IN VOID* lpUserData,
186 OUT ClientErrorMsg* lpClientErrorMsg,
187 IN const User* lpUser,
188 IN const TTCHAR* szIPAddress);
189
203 typedef void UserConnectedCallback(IN TTSInstance* lpTTSInstance,
204 IN VOID* lpUserData, IN const User* lpUser);
216 typedef void UserLoggedInCallback(IN TTSInstance* lpTTSInstance,
217 IN VOID* lpUserData, IN const User* lpUser);
226 typedef void UserLoggedOutCallback(IN TTSInstance* lpTTSInstance,
227 IN VOID* lpUserData, IN const User* lpUser);
236 typedef void UserDisconnectedCallback(IN TTSInstance* lpTTSInstance,
237 IN VOID* lpUserData, IN const User* lpUser);
246 typedef void UserTimedoutCallback(IN TTSInstance* lpTTSInstance,
247 IN VOID* lpUserData, IN const User* lpUser);
258 typedef void UserKickedCallback(IN TTSInstance* lpTTSInstance,
259 IN VOID* lpUserData, IN const User* lpKicker,
260 IN const User* lpKickee, IN const Channel* lpChannel);
272 typedef void UserBannedCallback(IN TTSInstance* lpTTSInstance,
273 IN VOID* lpUserData, IN const User* lpBanner,
274 IN const User* lpBanee, IN const Channel* lpChannel);
286 typedef void UserUnbannedCallback(IN TTSInstance* lpTTSInstance,
287 IN VOID* lpUserData, IN const User* lpUnbanner,
288 IN const TTCHAR* szIPAddress);
297 typedef void UserUpdatedCallback(IN TTSInstance* lpTTSInstance,
298 IN VOID* lpUserData, IN const User* lpUser);
308 typedef void UserJoinedChannelCallback(IN TTSInstance* lpTTSInstance,
309 IN VOID* lpUserData, IN const User* lpUser,
310 IN const Channel* lpChannel);
320 typedef void UserLeftChannelCallback(IN TTSInstance* lpTTSInstance,
321 IN VOID* lpUserData, IN const User* lpUser,
322 IN const Channel* lpChannel);
334 typedef void UserMovedCallback(IN TTSInstance* lpTTSInstance,
335 IN VOID* lpUserData, IN const User* lpMover,
336 IN const User* lpMovee);
348 typedef void UserTextMessageCallback(IN TTSInstance* lpTTSInstance,
349 IN VOID* lpUserData, IN const User* lpUser,
350 IN const TextMessage* lpTextMessage);
363 typedef void ChannelCreatedCallback(IN TTSInstance* lpTTSInstance,
364 IN VOID* lpUserData, IN const Channel* lpChannel,
365 IN const User* lpUser);
377 typedef void ChannelUpdatedCallback(IN TTSInstance* lpTTSInstance,
378 IN VOID* lpUserData, IN const Channel* lpChannel,
379 IN const User* lpUser);
390 typedef void ChannelRemovedCallback(IN TTSInstance* lpTTSInstance,
391 IN VOID* lpUserData, IN const Channel* lpChannel,
392 IN const User* lpUser);
402 typedef void FileUploadedCallback(IN TTSInstance* lpTTSInstance,
403 IN VOID* lpUserData,
404 IN const RemoteFile* lpRemoteFile,
405 IN const User* lpUser);
415 typedef void FileDownloadedCallback(IN TTSInstance* lpTTSInstance,
416 IN VOID* lpUserData,
417 IN const RemoteFile* lpRemoteFile,
418 IN const User* lpUser);
428 typedef void FileDeletedCallback(IN TTSInstance* lpTTSInstance,
429 IN VOID* lpUserData,
430 IN const RemoteFile* lpRemoteFile,
431 IN const User* lpUser);
443 typedef void ServerUpdatedCallback(IN TTSInstance* lpTTSInstance,
444 IN VOID* lpUserData,
445 IN const ServerProperties* lpServerProperties,
446 IN const User* lpUser);
457 typedef void SaveServerConfigCallback(IN TTSInstance* lpTTSInstance,
458 IN VOID* lpUserData,
459 IN const User* lpUser);
460
484 TEAMTALKDLL_API TTBOOL TTS_SetEncryptionContext(IN TTSInstance* lpTTSInstance,
485 IN const TTCHAR* szCertificateFile,
486 IN const TTCHAR* szPrivateKeyFile);
487
507 TEAMTALKDLL_API TTBOOL TTS_SetEncryptionContextEx(IN TTSInstance* lpTTSInstance,
508 const EncryptionContext* lpEncryptionContext);
509
525 TEAMTALKDLL_API TTSInstance* TTS_InitTeamTalk();
526
535 TEAMTALKDLL_API TTBOOL TTS_CloseTeamTalk(IN TTSInstance* lpTTSInstance);
536
546 TEAMTALKDLL_API TTBOOL TTS_RunEventLoop(IN TTSInstance* lpTTSInstance,
547 IN INT32* pnWaitMs);
548
568 TEAMTALKDLL_API INT32 TTS_SetChannelFilesRoot(IN TTSInstance* lpTTSInstance,
569 IN const TTCHAR* szFilesRoot,
570 IN INT64 nMaxDiskUsage,
571 IN INT64 nDefaultChannelQuota);
572
588 TEAMTALKDLL_API INT32 TTS_UpdateServer(IN TTSInstance* lpTTSInstance,
589 IN const ServerProperties* lpServerProperties);
590
605 TEAMTALKDLL_API INT32 TTS_MakeChannel(IN TTSInstance* lpTTSInstance,
606 IN const Channel* lpChannel);
607
619 TEAMTALKDLL_API INT32 TTS_UpdateChannel(IN TTSInstance* lpTTSInstance,
620 IN const Channel* lpChannel);
621
632 TEAMTALKDLL_API INT32 TTS_RemoveChannel(IN TTSInstance* lpTTSInstance,
633 IN INT32 nChannelID);
634
649 TEAMTALKDLL_API INT32 TTS_AddFileToChannel(IN TTSInstance* lpTTSInstance,
650 IN const TTCHAR* szLocalFilePath,
651 IN const RemoteFile* lpRemoteFile);
652
667 TEAMTALKDLL_API INT32 TTS_RemoveFileFromChannel(IN TTSInstance* lpTTSInstance,
668 IN const RemoteFile* lpRemoteFile);
669
682 TEAMTALKDLL_API INT32 TTS_MoveUser(IN TTSInstance* lpTTSInstance,
683 IN INT32 nUserID, IN const Channel* lpChannel);
684
695 TEAMTALKDLL_API INT32 TTS_SendTextMessage(IN TTSInstance* lpTTSInstance,
696 const TextMessage* lpTextMessage);
697
714 TEAMTALKDLL_API TTBOOL TTS_StartServer(IN TTSInstance* lpTTSInstance,
715 IN const TTCHAR* szBindIPAddr,
716 IN UINT16 nTcpPort,
717 IN UINT16 nUdpPort,
718 IN TTBOOL bEncrypted);
719
735 TEAMTALKDLL_API TTBOOL TTS_StartServerSysID(IN TTSInstance* lpTTSInstance,
736 IN const TTCHAR* szBindIPAddr,
737 IN UINT16 nTcpPort,
738 IN UINT16 nUdpPort,
739 IN TTBOOL bEncrypted,
740 IN const TTCHAR* szSystemID);
741
742
747 TEAMTALKDLL_API TTBOOL TTS_StopServer(IN TTSInstance* lpTTSInstance);
748
765 TEAMTALKDLL_API TTBOOL TTS_RegisterUserLoginCallback(IN TTSInstance* lpTTSInstance,
766 IN UserLoginCallback* lpCallback,
767 IN VOID* lpUserData, IN TTBOOL bEnable);
768
779 TEAMTALKDLL_API TTBOOL TTS_RegisterUserChangeNicknameCallback(IN TTSInstance* lpTTSInstance,
780 IN UserChangeNicknameCallback* lpCallback,
781 IN VOID* lpUserData, IN TTBOOL bEnable);
782
793 TEAMTALKDLL_API TTBOOL TTS_RegisterUserChangeStatusCallback(IN TTSInstance* lpTTSInstance,
794 IN UserChangeStatusCallback* lpCallback,
795 IN VOID* lpUserData, IN TTBOOL bEnable);
796
807 TEAMTALKDLL_API TTBOOL TTS_RegisterUserCreateUserAccountCallback(IN TTSInstance* lpTTSInstance,
808 IN UserCreateUserAccountCallback* lpCallback,
809 IN VOID* lpUserData, IN TTBOOL bEnable);
810
821 TEAMTALKDLL_API TTBOOL TTS_RegisterUserDeleteUserAccountCallback(IN TTSInstance* lpTTSInstance,
822 IN UserDeleteUserAccountCallback* lpCallback,
823 IN VOID* lpUserData, IN TTBOOL bEnable);
824
835 TEAMTALKDLL_API TTBOOL TTS_RegisterUserAddServerBanCallback(IN TTSInstance* lpTTSInstance,
836 IN UserAddServerBanCallback* lpCallback,
837 IN VOID* lpUserData, IN TTBOOL bEnable);
838
849 TEAMTALKDLL_API TTBOOL TTS_RegisterUserAddServerBanIPAddressCallback(IN TTSInstance* lpTTSInstance,
850 IN UserAddServerBanIPAddressCallback* lpCallback,
851 IN VOID* lpUserData, IN TTBOOL bEnable);
852
863 TEAMTALKDLL_API TTBOOL TTS_RegisterUserDeleteServerBanCallback(IN TTSInstance* lpTTSInstance,
864 IN UserDeleteServerBanCallback* lpCallback,
865 IN VOID* lpUserData, IN TTBOOL bEnable);
866
867
882 TEAMTALKDLL_API TTBOOL TTS_RegisterUserConnectedCallback(IN TTSInstance* lpTTSInstance,
883 IN UserConnectedCallback* lpCallback,
884 IN VOID* lpUserData, IN TTBOOL bEnable);
885
895 TEAMTALKDLL_API TTBOOL TTS_RegisterUserLoggedInCallback(IN TTSInstance* lpTTSInstance,
896 IN UserLoggedInCallback* lpCallback,
897 IN VOID* lpUserData, IN TTBOOL bEnable);
898
908 TEAMTALKDLL_API TTBOOL TTS_RegisterUserLoggedOutCallback(IN TTSInstance* lpTTSInstance,
909 IN UserLoggedOutCallback* lpCallback,
910 IN VOID* lpUserData, IN TTBOOL bEnable);
911
921 TEAMTALKDLL_API TTBOOL TTS_RegisterUserDisconnectedCallback(IN TTSInstance* lpTTSInstance,
922 IN UserDisconnectedCallback* lpCallback,
923 IN VOID* lpUserData, IN TTBOOL bEnable);
924
937 TEAMTALKDLL_API TTBOOL TTS_RegisterUserTimedoutCallback(IN TTSInstance* lpTTSInstance,
938 IN UserTimedoutCallback* lpCallback,
939 IN VOID* lpUserData, IN TTBOOL bEnable);
940
950 TEAMTALKDLL_API TTBOOL TTS_RegisterUserKickedCallback(IN TTSInstance* lpTTSInstance,
951 IN UserKickedCallback* lpCallback,
952 IN VOID* lpUserData, IN TTBOOL bEnable);
953
963 TEAMTALKDLL_API TTBOOL TTS_RegisterUserBannedCallback(IN TTSInstance* lpTTSInstance,
964 IN UserBannedCallback* lpCallback,
965 IN VOID* lpUserData, IN TTBOOL bEnable);
966
977 TEAMTALKDLL_API TTBOOL TTS_RegisterUserUnbannedCallback(IN TTSInstance* lpTTSInstance,
978 IN UserUnbannedCallback* lpCallback,
979 IN VOID* lpUserData, IN TTBOOL bEnable);
980
990 TEAMTALKDLL_API TTBOOL TTS_RegisterUserUpdatedCallback(IN TTSInstance* lpTTSInstance,
991 IN UserUpdatedCallback* lpCallback,
992 IN VOID* lpUserData, IN TTBOOL bEnable);
993
1003 TEAMTALKDLL_API TTBOOL TTS_RegisterUserJoinedChannelCallback(IN TTSInstance* lpTTSInstance,
1004 IN UserJoinedChannelCallback* lpCallback,
1005 IN VOID* lpUserData, IN TTBOOL bEnable);
1006
1016 TEAMTALKDLL_API TTBOOL TTS_RegisterUserLeftChannelCallback(IN TTSInstance* lpTTSInstance,
1017 IN UserLeftChannelCallback* lpCallback,
1018 IN VOID* lpUserData, IN TTBOOL bEnable);
1019
1029 TEAMTALKDLL_API TTBOOL TTS_RegisterUserMovedCallback(IN TTSInstance* lpTTSInstance,
1030 IN UserMovedCallback* lpCallback,
1031 IN VOID* lpUserData, IN TTBOOL bEnable);
1032
1042 TEAMTALKDLL_API TTBOOL TTS_RegisterUserTextMessageCallback(IN TTSInstance* lpTTSInstance,
1043 IN UserTextMessageCallback* lpCallback,
1044 IN VOID* lpUserData, IN TTBOOL bEnable);
1045
1055 TEAMTALKDLL_API TTBOOL TTS_RegisterChannelCreatedCallback(IN TTSInstance* lpTTSInstance,
1056 IN ChannelCreatedCallback* lpCallback,
1057 IN VOID* lpUserData, IN TTBOOL bEnable);
1058
1068 TEAMTALKDLL_API TTBOOL TTS_RegisterChannelUpdatedCallback(IN TTSInstance* lpTTSInstance,
1069 IN ChannelUpdatedCallback* lpCallback,
1070 IN VOID* lpUserData, IN TTBOOL bEnable);
1071
1081 TEAMTALKDLL_API TTBOOL TTS_RegisterChannelRemovedCallback(IN TTSInstance* lpTTSInstance,
1082 IN ChannelRemovedCallback* lpCallback,
1083 IN VOID* lpUserData, IN TTBOOL bEnable);
1084
1094 TEAMTALKDLL_API TTBOOL TTS_RegisterFileUploadedCallback(IN TTSInstance* lpTTSInstance,
1095 IN FileUploadedCallback* lpCallback,
1096 IN VOID* lpUserData, IN TTBOOL bEnable);
1097
1107 TEAMTALKDLL_API TTBOOL TTS_RegisterFileDownloadedCallback(IN TTSInstance* lpTTSInstance,
1108 IN FileDownloadedCallback* lpCallback,
1109 IN VOID* lpUserData, IN TTBOOL bEnable);
1110
1120 TEAMTALKDLL_API TTBOOL TTS_RegisterFileDeletedCallback(IN TTSInstance* lpTTSInstance,
1121 IN FileDeletedCallback* lpCallback,
1122 IN VOID* lpUserData, IN TTBOOL bEnable);
1123
1133 TEAMTALKDLL_API TTBOOL TTS_RegisterServerUpdatedCallback(IN TTSInstance* lpTTSInstance,
1134 IN ServerUpdatedCallback* lpCallback,
1135 IN VOID* lpUserData, IN TTBOOL bEnable);
1136
1147 TEAMTALKDLL_API TTBOOL TTS_RegisterSaveServerConfigCallback(IN TTSInstance* lpTTSInstance,
1148 IN SaveServerConfigCallback* lpCallback,
1149 IN VOID* lpUserData, IN TTBOOL bEnable);
1150
1153#ifdef __cplusplus
1154}
1155#endif
1156
1157#endif
TeamTalk.h
TEAMTALKDLL_API
#define TEAMTALKDLL_API
Definition TeamTalk.h:27
TTCHAR
WCHAR TTCHAR
TeamTalk uses Unicode on Windows.
Definition TeamTalk.h:51
TTBOOL
int TTBOOL
Definition TeamTalk.h:52
TTSInstance
VOID TTSInstance
A server instance.
Definition TeamTalkSrv.h:31
TTS_SetChannelFilesRoot
TEAMTALKDLL_API INT32 TTS_SetChannelFilesRoot(IN TTSInstance *lpTTSInstance, IN const TTCHAR *szFilesRoot, IN INT64 nMaxDiskUsage, IN INT64 nDefaultChannelQuota)
The root folder of where users should upload files to.
TTS_StartServerSysID
TEAMTALKDLL_API TTBOOL TTS_StartServerSysID(IN TTSInstance *lpTTSInstance, IN const TTCHAR *szBindIPAddr, IN UINT16 nTcpPort, IN UINT16 nUdpPort, IN TTBOOL bEncrypted, IN const TTCHAR *szSystemID)
Same as TTS_StartServer() but with the option of specifying a system-ID.
TTS_SendTextMessage
TEAMTALKDLL_API INT32 TTS_SendTextMessage(IN TTSInstance *lpTTSInstance, const TextMessage *lpTextMessage)
Send text message from server to clients.
TTS_CloseTeamTalk
TEAMTALKDLL_API TTBOOL TTS_CloseTeamTalk(IN TTSInstance *lpTTSInstance)
Close TeamTalk server instance.
TTS_RemoveChannel
TEAMTALKDLL_API INT32 TTS_RemoveChannel(IN TTSInstance *lpTTSInstance, IN INT32 nChannelID)
Remove a channel.
TTS_MakeChannel
TEAMTALKDLL_API INT32 TTS_MakeChannel(IN TTSInstance *lpTTSInstance, IN const Channel *lpChannel)
Make new channel.
TTS_AddFileToChannel
TEAMTALKDLL_API INT32 TTS_AddFileToChannel(IN TTSInstance *lpTTSInstance, IN const TTCHAR *szLocalFilePath, IN const RemoteFile *lpRemoteFile)
Add a file to an existing channel.
TTS_StopServer
TEAMTALKDLL_API TTBOOL TTS_StopServer(IN TTSInstance *lpTTSInstance)
Stop server and drop all users.
TTS_InitTeamTalk
TEAMTALKDLL_API TTSInstance * TTS_InitTeamTalk()
Create new TeamTalk server instance.
TTS_SetEncryptionContext
TEAMTALKDLL_API TTBOOL TTS_SetEncryptionContext(IN TTSInstance *lpTTSInstance, IN const TTCHAR *szCertificateFile, IN const TTCHAR *szPrivateKeyFile)
Set certificate and private key for encrypted server.
TTS_UpdateChannel
TEAMTALKDLL_API INT32 TTS_UpdateChannel(IN TTSInstance *lpTTSInstance, IN const Channel *lpChannel)
Update an existing channel.
TTS_RunEventLoop
TEAMTALKDLL_API TTBOOL TTS_RunEventLoop(IN TTSInstance *lpTTSInstance, IN INT32 *pnWaitMs)
Run the server's event loop.
TTS_RemoveFileFromChannel
TEAMTALKDLL_API INT32 TTS_RemoveFileFromChannel(IN TTSInstance *lpTTSInstance, IN const RemoteFile *lpRemoteFile)
Remove a file from a channel.
TTS_SetEncryptionContextEx
TEAMTALKDLL_API TTBOOL TTS_SetEncryptionContextEx(IN TTSInstance *lpTTSInstance, const EncryptionContext *lpEncryptionContext)
Set up encryption context for encrypted server.
TTS_MoveUser
TEAMTALKDLL_API INT32 TTS_MoveUser(IN TTSInstance *lpTTSInstance, IN INT32 nUserID, IN const Channel *lpChannel)
Move a user from one channel to another.
TTS_StartServer
TEAMTALKDLL_API TTBOOL TTS_StartServer(IN TTSInstance *lpTTSInstance, IN const TTCHAR *szBindIPAddr, IN UINT16 nTcpPort, IN UINT16 nUdpPort, IN TTBOOL bEncrypted)
Start server on specified IP-address and ports.
TTS_UpdateServer
TEAMTALKDLL_API INT32 TTS_UpdateServer(IN TTSInstance *lpTTSInstance, IN const ServerProperties *lpServerProperties)
Set server properties.
UserDeleteServerBanCallback
void UserDeleteServerBanCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpUser, IN const TTCHAR *szIPAddress)
Callback when a user is requesting to remove a ban.
Definition TeamTalkSrv.h:184
UserLoginCallback
void UserLoginCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpUser, IN OUT UserAccount *lpUserAccount)
Callback when a user is requesting to log on to the server.
Definition TeamTalkSrv.h:51
TTS_RegisterUserAddServerBanIPAddressCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserAddServerBanIPAddressCallback(IN TTSInstance *lpTTSInstance, IN UserAddServerBanIPAddressCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is requesting to add a server IP-address ban requested by a user.
UserDeleteUserAccountCallback
void UserDeleteUserAccountCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpUser, IN const TTCHAR *szUsername)
Callback when a user is requesting to delete a user account.
Definition TeamTalkSrv.h:129
UserChangeNicknameCallback
void UserChangeNicknameCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpUser, IN const TTCHAR *szNewNickname)
Callback when a user is requesting to change nickname.
Definition TeamTalkSrv.h:70
UserAddServerBanIPAddressCallback
void UserAddServerBanIPAddressCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpBanner, IN const TTCHAR *szIPAddress)
Callback when a user is requesting to ban an IP-address.
Definition TeamTalkSrv.h:166
TTS_RegisterUserLoginCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserLoginCallback(IN TTSInstance *lpTTSInstance, IN UserLoginCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is requesting to log on to the server.
UserCreateUserAccountCallback
void UserCreateUserAccountCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpUser, IN const UserAccount *lpUserAccount)
Callback when a user is requesting to create a new user account.
Definition TeamTalkSrv.h:110
UserAddServerBanCallback
void UserAddServerBanCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpBanner, IN const User *lpBanee)
Callback when a user is requesting to ban a user.
Definition TeamTalkSrv.h:147
TTS_RegisterUserChangeStatusCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserChangeStatusCallback(IN TTSInstance *lpTTSInstance, IN UserChangeStatusCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback to when user is changing status.
TTS_RegisterUserDeleteServerBanCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserDeleteServerBanCallback(IN TTSInstance *lpTTSInstance, IN UserDeleteServerBanCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is requesting to delete a server IP-address ban requested by a user.
TTS_RegisterUserChangeNicknameCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserChangeNicknameCallback(IN TTSInstance *lpTTSInstance, IN UserChangeNicknameCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback to when user is changing nickname.
TTS_RegisterUserCreateUserAccountCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserCreateUserAccountCallback(IN TTSInstance *lpTTSInstance, IN UserCreateUserAccountCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is requesting to create a new user account on the server.
TTS_RegisterUserAddServerBanCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserAddServerBanCallback(IN TTSInstance *lpTTSInstance, IN UserAddServerBanCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is requesting to add a server ban requested by a user.
TTS_RegisterUserDeleteUserAccountCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserDeleteUserAccountCallback(IN TTSInstance *lpTTSInstance, IN UserDeleteUserAccountCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is requesting to delete a user account on the server.
UserChangeStatusCallback
void UserChangeStatusCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, OUT ClientErrorMsg *lpClientErrorMsg, IN const User *lpUser, IN INT32 nNewStatusMode, IN const TTCHAR *szNewStatusMsg)
Callback when a user is requesting to change status.
Definition TeamTalkSrv.h:90
ServerUpdatedCallback
void ServerUpdatedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const ServerProperties *lpServerProperties, IN const User *lpUser)
Callback when a user has updated the server properties.
Definition TeamTalkSrv.h:443
TTS_RegisterFileDeletedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterFileDeletedCallback(IN TTSInstance *lpTTSInstance, IN FileDeletedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a file is deleted.
ChannelUpdatedCallback
void ChannelUpdatedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const Channel *lpChannel, IN const User *lpUser)
Callback when a channel has been updated.
Definition TeamTalkSrv.h:377
UserDisconnectedCallback
void UserDisconnectedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when user has disconnected.
Definition TeamTalkSrv.h:236
TTS_RegisterServerUpdatedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterServerUpdatedCallback(IN TTSInstance *lpTTSInstance, IN ServerUpdatedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a server's properties has been updated.
TTS_RegisterUserJoinedChannelCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserJoinedChannelCallback(IN TTSInstance *lpTTSInstance, IN UserJoinedChannelCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when an user joins a channel.
TTS_RegisterUserTimedoutCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserTimedoutCallback(IN TTSInstance *lpTTSInstance, IN UserTimedoutCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is dropped because of inactivity.
TTS_RegisterChannelRemovedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterChannelRemovedCallback(IN TTSInstance *lpTTSInstance, IN ChannelRemovedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a channel is removed.
TTS_RegisterUserTextMessageCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserTextMessageCallback(IN TTSInstance *lpTTSInstance, IN UserTextMessageCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user send a text message.
UserTextMessageCallback
void UserTextMessageCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser, IN const TextMessage *lpTextMessage)
Callback when a user is sending a text message.
Definition TeamTalkSrv.h:348
UserKickedCallback
void UserKickedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpKicker, IN const User *lpKickee, IN const Channel *lpChannel)
Callback when a user has been kicked.
Definition TeamTalkSrv.h:258
UserLoggedInCallback
void UserLoggedInCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user has logged in.
Definition TeamTalkSrv.h:216
TTS_RegisterSaveServerConfigCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterSaveServerConfigCallback(IN TTSInstance *lpTTSInstance, IN SaveServerConfigCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user requests the server to save its configuration.
UserTimedoutCallback
void UserTimedoutCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user's connection has timed out.
Definition TeamTalkSrv.h:246
TTS_RegisterChannelCreatedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterChannelCreatedCallback(IN TTSInstance *lpTTSInstance, IN ChannelCreatedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a channel is created.
UserJoinedChannelCallback
void UserJoinedChannelCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser, IN const Channel *lpChannel)
Callback when a user has joined a channel.
Definition TeamTalkSrv.h:308
TTS_RegisterChannelUpdatedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterChannelUpdatedCallback(IN TTSInstance *lpTTSInstance, IN ChannelUpdatedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a channel is updated.
UserBannedCallback
void UserBannedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpBanner, IN const User *lpBanee, IN const Channel *lpChannel)
Callback when a user has been banned.
Definition TeamTalkSrv.h:272
FileUploadedCallback
void FileUploadedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const RemoteFile *lpRemoteFile, IN const User *lpUser)
Callback when a new file has been uploaded to a channel.
Definition TeamTalkSrv.h:402
TTS_RegisterUserKickedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserKickedCallback(IN TTSInstance *lpTTSInstance, IN UserKickedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is kicked from the server.
TTS_RegisterUserLoggedInCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserLoggedInCallback(IN TTSInstance *lpTTSInstance, IN UserLoggedInCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user logs on to the server.
TTS_RegisterUserConnectedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserConnectedCallback(IN TTSInstance *lpTTSInstance, IN UserConnectedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user connects to the server.
TTS_RegisterUserMovedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserMovedCallback(IN TTSInstance *lpTTSInstance, IN UserMovedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is moved.
UserConnectedCallback
void UserConnectedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a new user is connecting to the server.
Definition TeamTalkSrv.h:203
UserLeftChannelCallback
void UserLeftChannelCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser, IN const Channel *lpChannel)
Callback when a user has left a channel.
Definition TeamTalkSrv.h:320
TTS_RegisterUserBannedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserBannedCallback(IN TTSInstance *lpTTSInstance, IN UserBannedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user is banned from the server.
FileDownloadedCallback
void FileDownloadedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const RemoteFile *lpRemoteFile, IN const User *lpUser)
Callback when a user has downloaded a file.
Definition TeamTalkSrv.h:415
UserLoggedOutCallback
void UserLoggedOutCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user has logged out.
Definition TeamTalkSrv.h:226
TTS_RegisterUserLoggedOutCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserLoggedOutCallback(IN TTSInstance *lpTTSInstance, IN UserLoggedOutCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user logs out of the server.
TTS_RegisterUserLeftChannelCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserLeftChannelCallback(IN TTSInstance *lpTTSInstance, IN UserLeftChannelCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when an user leaves a channel.
SaveServerConfigCallback
void SaveServerConfigCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user has reguested to save the server configuration.
Definition TeamTalkSrv.h:457
UserMovedCallback
void UserMovedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpMover, IN const User *lpMovee)
Callback when a user has been moved.
Definition TeamTalkSrv.h:334
UserUnbannedCallback
void UserUnbannedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUnbanner, IN const TTCHAR *szIPAddress)
Callback when a ban is removed.
Definition TeamTalkSrv.h:286
TTS_RegisterFileDownloadedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterFileDownloadedCallback(IN TTSInstance *lpTTSInstance, IN FileDownloadedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a file is downloaded.
TTS_RegisterUserUpdatedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserUpdatedCallback(IN TTSInstance *lpTTSInstance, IN UserUpdatedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when an user's properties are updated.
UserUpdatedCallback
void UserUpdatedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user's properties are being updated.
Definition TeamTalkSrv.h:297
ChannelCreatedCallback
void ChannelCreatedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const Channel *lpChannel, IN const User *lpUser)
Callback when a new channel has been created.
Definition TeamTalkSrv.h:363
ChannelRemovedCallback
void ChannelRemovedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const Channel *lpChannel, IN const User *lpUser)
Callback when channel has been removed.
Definition TeamTalkSrv.h:390
TTS_RegisterUserUnbannedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserUnbannedCallback(IN TTSInstance *lpTTSInstance, IN UserUnbannedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when an IP-address is unbanned from the server.
FileDeletedCallback
void FileDeletedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const RemoteFile *lpRemoteFile, IN const User *lpUser)
Callback when a user has deleted a file.
Definition TeamTalkSrv.h:428
TTS_RegisterUserDisconnectedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterUserDisconnectedCallback(IN TTSInstance *lpTTSInstance, IN UserDisconnectedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a user disconnects from the server.
TTS_RegisterFileUploadedCallback
TEAMTALKDLL_API TTBOOL TTS_RegisterFileUploadedCallback(IN TTSInstance *lpTTSInstance, IN FileUploadedCallback *lpCallback, IN VOID *lpUserData, IN TTBOOL bEnable)
Register a callback when a file is uploaded.
Channel
A struct containing the properties of a channel.
Definition TeamTalk.h:2471
ClientErrorMsg
Struct containing an error message.
Definition TeamTalk.h:3146
EncryptionContext
Configure peer verification for encrypted connection.
Definition TeamTalk.h:2653
RemoteFile
A struct containing the properties of a file in a Channel.
Definition TeamTalk.h:2627
ServerProperties
A struct containing the properties of the server's settings.
Definition TeamTalk.h:1779
TextMessage
A struct containing the properties of a text message sent by a user.
Definition TeamTalk.h:2394
UserAccount
A struct containing the properties of a user account.
Definition TeamTalk.h:2013
User
A struct containing the properties of a user.
Definition TeamTalk.h:2197