TeamTalk 5 C-API DLL Version 5.15A
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.15.0.5135"
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
485 IN const TTCHAR* szCertificateFile,
486 IN const TTCHAR* szPrivateKeyFile);
487
508 const EncryptionContext* lpEncryptionContext);
509
526
536
547 IN INT32* pnWaitMs);
548
569 IN const TTCHAR* szFilesRoot,
570 IN INT64 nMaxDiskUsage,
571 IN INT64 nDefaultChannelQuota);
572
589 IN const ServerProperties* lpServerProperties);
590
606 IN const Channel* lpChannel);
607
620 IN const Channel* lpChannel);
621
633 IN INT32 nChannelID);
634
650 IN const TTCHAR* szLocalFilePath,
651 IN const RemoteFile* lpRemoteFile);
652
668 IN const RemoteFile* lpRemoteFile);
669
682 TEAMTALKDLL_API INT32 TTS_MoveUser(IN TTSInstance* lpTTSInstance,
683 IN INT32 nUserID, IN const Channel* lpChannel);
684
696 const TextMessage* lpTextMessage);
697
715 IN const TTCHAR* szBindIPAddr,
716 IN UINT16 nTcpPort,
717 IN UINT16 nUdpPort,
718 IN TTBOOL bEncrypted);
719
736 IN const TTCHAR* szBindIPAddr,
737 IN UINT16 nTcpPort,
738 IN UINT16 nUdpPort,
739 IN TTBOOL bEncrypted,
740 IN const TTCHAR* szSystemID);
741
742
748
766 IN UserLoginCallback* lpCallback,
767 IN VOID* lpUserData, IN TTBOOL bEnable);
768
780 IN UserChangeNicknameCallback* lpCallback,
781 IN VOID* lpUserData, IN TTBOOL bEnable);
782
794 IN UserChangeStatusCallback* lpCallback,
795 IN VOID* lpUserData, IN TTBOOL bEnable);
796
808 IN UserCreateUserAccountCallback* lpCallback,
809 IN VOID* lpUserData, IN TTBOOL bEnable);
810
822 IN UserDeleteUserAccountCallback* lpCallback,
823 IN VOID* lpUserData, IN TTBOOL bEnable);
824
836 IN UserAddServerBanCallback* lpCallback,
837 IN VOID* lpUserData, IN TTBOOL bEnable);
838
851 IN VOID* lpUserData, IN TTBOOL bEnable);
852
864 IN UserDeleteServerBanCallback* lpCallback,
865 IN VOID* lpUserData, IN TTBOOL bEnable);
866
867
883 IN UserConnectedCallback* lpCallback,
884 IN VOID* lpUserData, IN TTBOOL bEnable);
885
896 IN UserLoggedInCallback* lpCallback,
897 IN VOID* lpUserData, IN TTBOOL bEnable);
898
909 IN UserLoggedOutCallback* lpCallback,
910 IN VOID* lpUserData, IN TTBOOL bEnable);
911
922 IN UserDisconnectedCallback* lpCallback,
923 IN VOID* lpUserData, IN TTBOOL bEnable);
924
938 IN UserTimedoutCallback* lpCallback,
939 IN VOID* lpUserData, IN TTBOOL bEnable);
940
951 IN UserKickedCallback* lpCallback,
952 IN VOID* lpUserData, IN TTBOOL bEnable);
953
964 IN UserBannedCallback* lpCallback,
965 IN VOID* lpUserData, IN TTBOOL bEnable);
966
978 IN UserUnbannedCallback* lpCallback,
979 IN VOID* lpUserData, IN TTBOOL bEnable);
980
991 IN UserUpdatedCallback* lpCallback,
992 IN VOID* lpUserData, IN TTBOOL bEnable);
993
1004 IN UserJoinedChannelCallback* lpCallback,
1005 IN VOID* lpUserData, IN TTBOOL bEnable);
1006
1017 IN UserLeftChannelCallback* lpCallback,
1018 IN VOID* lpUserData, IN TTBOOL bEnable);
1019
1030 IN UserMovedCallback* lpCallback,
1031 IN VOID* lpUserData, IN TTBOOL bEnable);
1032
1043 IN UserTextMessageCallback* lpCallback,
1044 IN VOID* lpUserData, IN TTBOOL bEnable);
1045
1056 IN ChannelCreatedCallback* lpCallback,
1057 IN VOID* lpUserData, IN TTBOOL bEnable);
1058
1069 IN ChannelUpdatedCallback* lpCallback,
1070 IN VOID* lpUserData, IN TTBOOL bEnable);
1071
1082 IN ChannelRemovedCallback* lpCallback,
1083 IN VOID* lpUserData, IN TTBOOL bEnable);
1084
1095 IN FileUploadedCallback* lpCallback,
1096 IN VOID* lpUserData, IN TTBOOL bEnable);
1097
1108 IN FileDownloadedCallback* lpCallback,
1109 IN VOID* lpUserData, IN TTBOOL bEnable);
1110
1121 IN FileDeletedCallback* lpCallback,
1122 IN VOID* lpUserData, IN TTBOOL bEnable);
1123
1134 IN ServerUpdatedCallback* lpCallback,
1135 IN VOID* lpUserData, IN TTBOOL bEnable);
1136
1148 IN SaveServerConfigCallback* lpCallback,
1149 IN VOID* lpUserData, IN TTBOOL bEnable);
1150
1153#ifdef __cplusplus
1154}
1155#endif
1156
1157#endif
#define TEAMTALKDLL_API
Definition TeamTalk.h:27
WCHAR TTCHAR
TeamTalk uses Unicode on Windows.
Definition TeamTalk.h:51
int TTBOOL
Definition TeamTalk.h:52
VOID TTSInstance
A server instance.
Definition TeamTalkSrv.h:31
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.
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.
TEAMTALKDLL_API INT32 TTS_SendTextMessage(IN TTSInstance *lpTTSInstance, const TextMessage *lpTextMessage)
Send text message from server to clients.
TEAMTALKDLL_API TTBOOL TTS_CloseTeamTalk(IN TTSInstance *lpTTSInstance)
Close TeamTalk server instance.
TEAMTALKDLL_API INT32 TTS_RemoveChannel(IN TTSInstance *lpTTSInstance, IN INT32 nChannelID)
Remove a channel.
TEAMTALKDLL_API INT32 TTS_MakeChannel(IN TTSInstance *lpTTSInstance, IN const Channel *lpChannel)
Make new channel.
TEAMTALKDLL_API INT32 TTS_AddFileToChannel(IN TTSInstance *lpTTSInstance, IN const TTCHAR *szLocalFilePath, IN const RemoteFile *lpRemoteFile)
Add a file to an existing channel.
TEAMTALKDLL_API TTBOOL TTS_StopServer(IN TTSInstance *lpTTSInstance)
Stop server and drop all users.
TEAMTALKDLL_API TTSInstance * TTS_InitTeamTalk()
Create new TeamTalk server instance.
TEAMTALKDLL_API TTBOOL TTS_SetEncryptionContext(IN TTSInstance *lpTTSInstance, IN const TTCHAR *szCertificateFile, IN const TTCHAR *szPrivateKeyFile)
Set certificate and private key for encrypted server.
TEAMTALKDLL_API INT32 TTS_UpdateChannel(IN TTSInstance *lpTTSInstance, IN const Channel *lpChannel)
Update an existing channel.
TEAMTALKDLL_API TTBOOL TTS_RunEventLoop(IN TTSInstance *lpTTSInstance, IN INT32 *pnWaitMs)
Run the server's event loop.
TEAMTALKDLL_API INT32 TTS_RemoveFileFromChannel(IN TTSInstance *lpTTSInstance, IN const RemoteFile *lpRemoteFile)
Remove a file from a channel.
TEAMTALKDLL_API TTBOOL TTS_SetEncryptionContextEx(IN TTSInstance *lpTTSInstance, const EncryptionContext *lpEncryptionContext)
Set up encryption context for encrypted server.
TEAMTALKDLL_API INT32 TTS_MoveUser(IN TTSInstance *lpTTSInstance, IN INT32 nUserID, IN const Channel *lpChannel)
Move a user from one channel to another.
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.
TEAMTALKDLL_API INT32 TTS_UpdateServer(IN TTSInstance *lpTTSInstance, IN const ServerProperties *lpServerProperties)
Set server properties.
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.
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
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
void ChannelUpdatedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const Channel *lpChannel, IN const User *lpUser)
Callback when a channel has been updated.
void UserDisconnectedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when user has disconnected.
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.
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.
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.
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.
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.
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.
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.
void UserLoggedInCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user has logged in.
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.
void UserTimedoutCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user's connection has timed out.
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.
void UserJoinedChannelCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser, IN const Channel *lpChannel)
Callback when a user has joined a channel.
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.
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.
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.
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.
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.
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.
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.
void UserConnectedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a new user is connecting to the server.
void UserLeftChannelCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser, IN const Channel *lpChannel)
Callback when a user has left a channel.
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.
void FileDownloadedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const RemoteFile *lpRemoteFile, IN const User *lpUser)
Callback when a user has downloaded a file.
void UserLoggedOutCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user has logged out.
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.
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.
void SaveServerConfigCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user has reguested to save the server configuration.
void UserMovedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpMover, IN const User *lpMovee)
Callback when a user has been moved.
void UserUnbannedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUnbanner, IN const TTCHAR *szIPAddress)
Callback when a ban is removed.
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.
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.
void UserUpdatedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const User *lpUser)
Callback when a user's properties are being updated.
void ChannelCreatedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const Channel *lpChannel, IN const User *lpUser)
Callback when a new channel has been created.
void ChannelRemovedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const Channel *lpChannel, IN const User *lpUser)
Callback when channel has been removed.
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.
void FileDeletedCallback(IN TTSInstance *lpTTSInstance, IN VOID *lpUserData, IN const RemoteFile *lpRemoteFile, IN const User *lpUser)
Callback when a user has deleted a file.
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.
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.
A struct containing the properties of a channel.
Definition TeamTalk.h:2487
Struct containing an error message.
Definition TeamTalk.h:3162
Configure peer verification for encrypted connection.
Definition TeamTalk.h:2669
A struct containing the properties of a file in a Channel.
Definition TeamTalk.h:2643
A struct containing the properties of the server's settings.
Definition TeamTalk.h:1798
A struct containing the properties of a text message sent by a user.
Definition TeamTalk.h:2410
A struct containing the properties of a user account.
Definition TeamTalk.h:2032
A struct containing the properties of a user.
Definition TeamTalk.h:2213