TeamTalk 5 .NET DLL  Version 5.14A
TeamTalkSrv.cs
1 /*
2  * Copyright (c) 2005-2018, BearWare.dk
3  *
4  * Contact Information:
5  *
6  * Bjoern D. Rasmussen
7  * Kirketoften 5
8  * DK-8260 Viby J
9  * Denmark
10  * Email: contact@bearware.dk
11  * Phone: +45 20 20 54 59
12  * Web: http://www.bearware.dk
13  *
14  * This source code is part of the TeamTalk SDK owned by
15  * BearWare.dk. Use of this file, or its compiled unit, requires a
16  * TeamTalk SDK License Key issued by BearWare.dk.
17  *
18  * The TeamTalk SDK License Agreement along with its Terms and
19  * Conditions are outlined in the file License.txt included with the
20  * TeamTalk SDK distribution.
21  *
22  */
23 
24 using System;
25 using System.Collections.Generic;
26 using System.Linq;
27 using System.Text;
28 using System.Runtime.InteropServices;
29 using c_tt;
30 
31 namespace BearWare
32 {
43  public class TeamTalk5Srv : TeamTalkSrvBase, IDisposable
44  {
45 
60  public delegate void UserLogin(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount);
64  public event UserLogin OnUserLogin;
65 
75  public delegate void UserChangeNickname(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szNewNickname);
90  public delegate void UserChangeStatus(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref int nNewStatusMode, string szNewStatusMsg);
95 
106  public delegate void UserCreateUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount);
111 
122  public delegate void UserDeleteUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szUsername);
127 
137  public delegate void UserAddServerBan(ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, ref User lpBanee);
142 
153  public delegate void UserAddServerBanIPAddress(ref ClientErrorMsg lpClientErrorMsg,ref User lpBanner, string szIPAddress);
158 
168  public delegate void UserDeleteServerBan(ref ClientErrorMsg lpClientErrorMsg,ref User lpUser, string szIPAddress);
173 
183  public delegate void UserConnected(ref User lpUser);
184 
189 
197  public delegate void UserLoggedIn(ref User lpUser);
206  public delegate void UserLoggedOut(ref User lpUser);
211 
216  public delegate void UserDisconnected(ref User lpUser);
221 
226  public delegate void UserTimedout(ref User lpUser);
231 
238  public delegate void UserKicked(ref User lpKicker, ref User lpKickee, ref Channel lpChannel);
242  public event UserKicked OnUserKicked;
243 
251  public delegate void UserBanned(ref User lpBanner, ref User lpBanee, IntPtr lpChannel);
255  public event UserBanned OnUserBanned;
256 
264  public delegate void UserUnbanned(ref User lpUnbanner, string szIPAddress);
269 
274  public delegate void UserUpdated(ref User lpUser);
279 
285  public delegate void UserJoinedChannel(ref User lpUser, ref Channel lpChannel);
290 
296  public delegate void UserLeftChannel(ref User lpUser, ref Channel lpChannel);
301 
309  public delegate void UserMoved(ref User lpMover, ref User lpMovee);
313  public event UserMoved OnUserMoved;
314 
322  public delegate void UserTextMessage(ref User lpUser,ref TextMessage lpTextMessage);
327 
336  public delegate void ChannelCreated(ref Channel lpChannel,ref User lpUser);
341 
349  public delegate void ChannelUpdated(ref Channel lpChannel,ref User lpUser);
354 
361  public delegate void ChannelRemoved(ref Channel lpChannel,ref User lpUser);
366 
372  public delegate void FileUploaded(ref RemoteFile lpRemoteFile,ref User lpUser);
377 
383  public delegate void FileDownloaded(ref RemoteFile lpRemoteFile,ref User lpUser);
388 
394  public delegate void FileDeleted(ref RemoteFile lpRemoteFile,ref User lpUser);
399 
407  public delegate void ServerUpdated(ref ServerProperties lpServerProperties,ref User lpUser);
412 
419  public delegate void SaveServerConfig(ref User lpUser);
424 
438  public TeamTalk5Srv()
439  {
440  Init();
441  }
442 
449  public TeamTalk5Srv(Channel lpChannel)
450  : base(lpChannel)
451  {
452  Init();
453  }
454 
460  public TeamTalk5Srv(Channel lpChannel, ServerProperties lpServerProperties)
461  : base(lpChannel, lpServerProperties)
462  {
463  Init();
464  }
465 
466  void Init()
467  {
468  base.OnChannelCreatedCallback += new ChannelCreatedCallback(TeamTalkSrv_OnChannelCreatedCallback);
469  base.OnChannelRemovedCallback += new ChannelRemovedCallback(TeamTalkSrv_OnChannelRemovedCallback);
470  base.OnChannelUpdatedCallback += new ChannelUpdatedCallback(TeamTalkSrv_OnChannelUpdatedCallback);
471  base.OnUserLoginCallback += new UserLoginCallback(TeamTalkSrv_OnUserLoginCallback);
472  base.OnUserLoggedOutCallback += new UserLoggedOutCallback(TeamTalkSrv_OnUserLoggedOutCallback);
473  base.OnUserLoggedInCallBack += new UserLoggedInCallback(TeamTalkSrv_OnUserLoggedInCallBack);
474  base.OnUserTextMessageCallback += new UserTextMessageCallback(TeamTalkSrv_OnUserTextMessageCallback);
475  base.OnUserAddServerBanCallback += new UserAddServerBanCallback(TeamTalkSrv_OnUserAddServerBanCallback);
476  base.OnUserAddServerBanIPAddressCallback += new UserAddServerBanIPAddressCallback(TeamTalkSrv_OnUserAddServerBanIPAddressCallback);
477  base.OnUserDeleteServerBanCallback += new UserDeleteServerBanCallback(TeamTalkSrv_OnUserDeleteServerBanCallback);
478  base.OnUserBannedCallback += new UserBannedCallback(TeamTalkSrv_OnUserBannedCallback);
479  base.OnUserConnectedCallback += new UserConnectedCallback(TeamTalkSrv_OnUserConnectedCallback);
480  base.OnUserDisconnectedCallback += new UserDisconnectedCallback(TeamTalkSrv_OnUserDisconnectedCallback);
481  base.OnUserTimedoutCallback += new UserTimedoutCallback(TeamTalkSrv_OnUserTimedoutCallback);
482  base.OnUserLeftChannelCallback += new UserLeftChannelCallback(TeamTalkSrv_OnUserLeftChannelCallback);
483  base.OnUserJoinedChannelCallback += new UserJoinedChannelCallback(TeamTalkSrv_OnUserJoinedChannelCallback);
484  base.OnUserKickedCallback += new UserKickedCallback(TeamTalkSrv_OnUserKickedCallback);
485  base.OnUserMovedCallback += new UserMovedCallback(TeamTalkSrv_OnUserMovedCallback);
486  base.OnUserUpdatedCallback += new UserUpdatedCallback(TeamTalkSrv_OnUserUpdatedCallback);
487  base.OnSaveServerConfigCallback += new SaveServerConfigCallback(TeamTalkSrv_OnSaveServerConfigCallback);
488  base.OnServerUpdatedCallback += new ServerUpdatedCallback(TeamTalkSrv_OnServerUpdatedCallback);
489  base.OnUserCreateUserAccountCallback += new UserCreateUserAccountCallback(TeamTalkSrv_OnUserCreateUserAccountCallback);
490  base.OnUserDeleteUserAccountCallback += new UserDeleteUserAccountCallback(TeamTalkSrv_OnUserDeleteUserAccountCallback);
491  base.OnFileDeletedCallback += new FileDeletedCallback(TeamTalkSrv_OnFileDeletedCallback);
492  base.OnFileDownloadedCallback += new FileDownloadedCallback(TeamTalkSrv_OnFileDownloadedCallback);
493  base.OnFileUploadedCallback += new FileUploadedCallback(TeamTalkSrv_OnFileUploadedCallback);
494  base.OnUserChangeNicknameCallback += new UserChangeNicknameCallback(TeamTalk5Srv_OnUserChangeNicknameCallback);
495  base.OnUserChangeStatusCallback += new UserChangeStatusCallback(TeamTalk5Srv_OnUserChangeStatusCallback);
496  }
497 
498  void TeamTalk5Srv_OnUserChangeStatusCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref int nNewStatusMode, string szNewStatusMsg)
499  {
500  if(OnUserChangeStatus !=null)
501  {
502  OnUserChangeStatus(ref lpClientErrorMsg, ref lpUser, ref nNewStatusMode, szNewStatusMsg);
503  }
504  }
505 
506  void TeamTalk5Srv_OnUserChangeNicknameCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szNewNickname)
507  {
508  if(OnUserChangeNickname != null)
509  {
510  OnUserChangeNickname(ref lpClientErrorMsg, ref lpUser, szNewNickname);
511  }
512  }
513 
516  void TeamTalkSrv_OnFileUploadedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref RemoteFile lpRemoteFile, ref User lpUser)
517  {
518  if(OnFileUploaded != null)
519  {
520  OnFileUploaded(ref lpRemoteFile, ref lpUser);
521  }
522  }
523 
524  void TeamTalkSrv_OnFileDownloadedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref RemoteFile lpRemoteFile, ref User lpUser)
525  {
526 
527  if(OnFileDownloaded != null)
528  {
529  OnFileDownloaded(ref lpRemoteFile, ref lpUser);
530  }
531  }
532  void TeamTalkSrv_OnFileDeletedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref RemoteFile lpRemoteFile, ref User lpUser)
533  {
534  if(OnFileDeleted != null)
535  {
536  OnFileDeleted(ref lpRemoteFile, ref lpUser);
537  }
538  }
539 
540  void TeamTalkSrv_OnUserDeleteUserAccountCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szUsername)
541  {
542 
543  if(OnUserDeleteUserAccount != null)
544  {
545  OnUserDeleteUserAccount(ref lpClientErrorMsg, ref lpUser, szUsername);
546  }
547  }
548 
549  void TeamTalkSrv_OnUserCreateUserAccountCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount)
550  {
551  if(OnUserCreateUserAccount != null)
552  {
553  OnUserCreateUserAccount(ref lpClientErrorMsg, ref lpUser, ref lpUserAccount);
554  }
555  }
556 
557  void TeamTalkSrv_OnServerUpdatedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ServerProperties lpServerProperties, ref User lpUser)
558  {
559  if(OnServerUpdated != null)
560  {
561  OnServerUpdated(ref lpServerProperties, ref lpUser);
562  }
563  }
564 
565  void TeamTalkSrv_OnSaveServerConfigCallback(IntPtr lpTTSInstance, IntPtr lpUserData, IntPtr lpUser)
566  {
567  User user = new User();
568  if (lpUser != IntPtr.Zero)
569  {
570  user = (User)Marshal.PtrToStructure(lpUser, typeof(User));
571  }
572  if (OnSaveServerConfig != null)
573  {
574  OnSaveServerConfig(ref user);
575  }
576  }
577 
578  void TeamTalkSrv_OnUserUpdatedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser)
579  {
580  if(OnUserUpdated != null)
581  {
582  OnUserUpdated(ref lpUser);
583  }
584  }
585 
586  void TeamTalkSrv_OnUserMovedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpMover, ref User lpMovee)
587  {
588  if(OnUserMoved != null)
589  {
590  OnUserMoved(ref lpMover, ref lpMovee);
591  }
592  }
593 
594  void TeamTalkSrv_OnUserKickedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, IntPtr lpKicker, ref User lpKickee, IntPtr lpChannel)
595  {
596  User user = new User();
597  if (lpKicker != IntPtr.Zero)
598  {
599  user = (User)Marshal.PtrToStructure(lpKicker, typeof(User));
600  }
601  Channel chan = new Channel();
602  if(lpChannel != IntPtr.Zero)
603  {
604  chan = (Channel)Marshal.PtrToStructure(lpChannel, typeof(Channel));
605  }
606  if(OnUserKicked != null)
607  {
608  OnUserKicked(ref user, ref lpKickee, ref chan);
609  }
610  }
611 
612  void TeamTalkSrv_OnUserJoinedChannelCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser, ref Channel lpChannel)
613  {
614  if(OnUserJoinedChannel !=null)
615  {
616  OnUserJoinedChannel(ref lpUser, ref lpChannel);
617  }
618  }
619 
620  void TeamTalkSrv_OnUserLeftChannelCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser, ref Channel lpChannel)
621  {
622  if(OnUserLeftChannel != null)
623  {
624  OnUserLeftChannel(ref lpUser, ref lpChannel);
625  }
626  }
627 
628  void TeamTalkSrv_OnUserTimedoutCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser)
629  {
630  if(OnUserTimedout != null)
631  {
632  OnUserTimedout(ref lpUser);
633  }
634  }
635 
636  void TeamTalkSrv_OnUserDisconnectedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser)
637  {
638  if(OnUserDisconnected != null)
639  {
640  OnUserDisconnected(ref lpUser);
641  }
642  }
643 
644  void TeamTalkSrv_OnUserConnectedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser)
645  {
646  if(OnUserConnected != null)
647  {
648  OnUserConnected(ref lpUser);
649  }
650  }
651 
652  void TeamTalkSrv_OnUserBannedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpBanner, ref User lpBanee, IntPtr lpChannel)
653  {
654  if(OnUserBanned != null)
655  {
656  OnUserBanned(ref lpBanner, ref lpBanee, lpChannel);
657  }
658  }
659 
660  void TeamTalkSrv_OnUserDeleteServerBanCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szIPAddress)
661  {
662  if(OnUserDeleteServerBan != null)
663  {
664  OnUserDeleteServerBan(ref lpClientErrorMsg, ref lpUser, szIPAddress);
665  }
666  }
667 
668  void TeamTalkSrv_OnUserAddServerBanIPAddressCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, string szIPAddress)
669  {
670  if(OnUserAddServerBanIPAddress != null)
671  {
672  OnUserAddServerBanIPAddress(ref lpClientErrorMsg, ref lpBanner, szIPAddress);
673  }
674  }
675 
676  void TeamTalkSrv_OnUserAddServerBanCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, ref User lpBanee)
677  {
678  if(OnUserAddServerBan != null)
679  {
680  OnUserAddServerBan(ref lpClientErrorMsg, ref lpBanner, ref lpBanee);
681  }
682  }
683 
684  void TeamTalkSrv_OnUserTextMessageCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser, ref TextMessage lpTextMessage)
685  {
686  if(OnUserTextMessage !=null)
687  {
688  OnUserTextMessage(ref lpUser, ref lpTextMessage);
689  }
690  }
691 
692  void TeamTalkSrv_OnUserLoggedOutCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser)
693  {
694  if (OnUserLoggedOut != null)
695  {
696  OnUserLoggedOut(ref lpUser);
697  }
698  }
699 
700  void TeamTalkSrv_OnUserLoggedInCallBack(IntPtr lpTTSInstance, IntPtr lpUserData, ref User lpUser)
701  {
702  if (OnUserLoggedIn != null)
703  {
704  OnUserLoggedIn(ref lpUser);
705  }
706  }
707 
708  void TeamTalkSrv_OnUserLoginCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount)
709  {
710  if (OnUserLogin != null)
711  {
712  OnUserLogin(ref lpClientErrorMsg, ref lpUser, ref lpUserAccount);
713  }
714  }
715 
716  void TeamTalkSrv_OnChannelUpdatedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref Channel lpChannel, IntPtr lpUser)
717  {
718  User user = new User();
719  if (lpUser != IntPtr.Zero)
720  {
721  user = (User)Marshal.PtrToStructure(lpUser, typeof(User));
722  }
723  if (OnChannelUpdated != null)
724  {
725  OnChannelUpdated(ref lpChannel, ref user);
726  }
727  }
728 
729  void TeamTalkSrv_OnChannelRemovedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref Channel lpChannel, IntPtr lpUser)
730  {
731  User user = new User();
732  if (lpUser != IntPtr.Zero)
733  {
734  user = (User)Marshal.PtrToStructure(lpUser, typeof(User));
735  }
736  if (OnChannelRemoved != null)
737  {
738  OnChannelRemoved(ref lpChannel, ref user);
739  }
740  }
741 
742  void TeamTalkSrv_OnChannelCreatedCallback(IntPtr lpTTSInstance, IntPtr lpUserData, ref Channel lpChannel, IntPtr lpUser)
743  {
744  User user = new User();
745  if (lpUser != IntPtr.Zero)
746  {
747  user = (User)Marshal.PtrToStructure(lpUser, typeof(User));
748  }
749  if (OnChannelCreated != null)
750  {
751  OnChannelCreated(ref lpChannel, ref user);
752  }
753  }
754  }
755 }
Instantiate this class to start a TeamTalk server.
Definition: TeamTalkSrv.cs:44
Base class for BearWare.TeamTalk5Srv.
TeamTalk5Srv()
Instantiate TeamTalk server. Call UpdateServer() and MakeChannel() to setup server properties and roo...
Definition: TeamTalkSrv.cs:438
TeamTalk5Srv(Channel lpChannel, ServerProperties lpServerProperties)
Instantiate TeamTalk server with root channel and server properties.
Definition: TeamTalkSrv.cs:460
TeamTalk5Srv(Channel lpChannel)
Instantiate TeamTalk server with a root channel.
Definition: TeamTalkSrv.cs:449
UserCreateUserAccount OnUserCreateUserAccount
Register using UserCreateUserAccount delegate.
Definition: TeamTalkSrv.cs:110
UserDeleteUserAccount OnUserDeleteUserAccount
Register using UserCreateUserAccount delegate.
Definition: TeamTalkSrv.cs:126
delegate void UserLogin(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount)
Callback when a user is requesting to log on to the server.
delegate void UserCreateUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount)
Callback when a user is requesting to create a new user account.
UserDeleteServerBan OnUserDeleteServerBan
Register using UserAddServerBanIPAddress delegate.
Definition: TeamTalkSrv.cs:172
delegate void UserChangeStatus(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref int nNewStatusMode, string szNewStatusMsg)
Callback when a user is requesting to change status.
UserChangeStatus OnUserChangeStatus
Register using UserChangeStatus delegate.
Definition: TeamTalkSrv.cs:94
delegate void UserAddServerBanIPAddress(ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, string szIPAddress)
Callback when a user is requesting to ban an IP-address.
UserChangeNickname OnUserChangeNickname
Register using UserChangeNickname delegate.
Definition: TeamTalkSrv.cs:79
delegate void UserDeleteUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szUsername)
Callback when a user is requesting to delete a user account.
delegate void UserChangeNickname(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szNewNickname)
Callback when a user is requesting to change nickname.
UserLogin OnUserLogin
Register using UserLogin delegate.
Definition: TeamTalkSrv.cs:64
delegate void UserAddServerBan(ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, ref User lpBanee)
Callback when a user is requesting to ban a user.
UserAddServerBanIPAddress OnUserAddServerBanIPAddress
Register using UserAddServerBan delegate.
Definition: TeamTalkSrv.cs:157
delegate void UserDeleteServerBan(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szIPAddress)
Callback when a user is requesting to remove a ban.
UserAddServerBan OnUserAddServerBan
Register using UserAddServerBan delegate.
Definition: TeamTalkSrv.cs:141
UserMoved OnUserMoved
Register using UserMoved delegate.
Definition: TeamTalkSrv.cs:313
UserLoggedOut OnUserLoggedOut
Register using UserLoggedOut delegate.
Definition: TeamTalkSrv.cs:210
ChannelUpdated OnChannelUpdated
Register using ChannelUpdated delegate.
Definition: TeamTalkSrv.cs:353
delegate void UserTextMessage(ref User lpUser, ref TextMessage lpTextMessage)
Callback when a user is sending a text message.
delegate void ChannelRemoved(ref Channel lpChannel, ref User lpUser)
Callback when channel has been removed.
delegate void UserJoinedChannel(ref User lpUser, ref Channel lpChannel)
Callback when a user has joined a channel.
FileDownloaded OnFileDownloaded
Register using FileDownloaded delegate.
Definition: TeamTalkSrv.cs:387
delegate void UserConnected(ref User lpUser)
Callback when a new user is connecting to the server.
delegate void FileDeleted(ref RemoteFile lpRemoteFile, ref User lpUser)
Callback when a user has deleted a file.
ChannelRemoved OnChannelRemoved
Register using ChannelRemoved delegate.
Definition: TeamTalkSrv.cs:365
delegate void UserLoggedIn(ref User lpUser)
Callback when a user has logged in.
ServerUpdated OnServerUpdated
Register using ServerUpdated delegate.
Definition: TeamTalkSrv.cs:411
UserKicked OnUserKicked
Register using UserKicked delegate.
Definition: TeamTalkSrv.cs:242
UserDisconnected OnUserDisconnected
Register using UserDisconnected delegate.
Definition: TeamTalkSrv.cs:220
UserLoggedIn OnUserLoggedIn
Register using UserLoggedIn delegate.
Definition: TeamTalkSrv.cs:201
delegate void ServerUpdated(ref ServerProperties lpServerProperties, ref User lpUser)
Callback when a user has updated the server properties.
FileUploaded OnFileUploaded
Register using FileUploaded delegate.
Definition: TeamTalkSrv.cs:376
delegate void SaveServerConfig(ref User lpUser)
Callback when a user has reguested to save the server configuration.
delegate void UserLeftChannel(ref User lpUser, ref Channel lpChannel)
Callback when a user has left a channel.
delegate void FileDownloaded(ref RemoteFile lpRemoteFile, ref User lpUser)
Callback when a user has downloaded a file.
ChannelCreated OnChannelCreated
Register using ChannelCreated delegate.
Definition: TeamTalkSrv.cs:340
UserLeftChannel OnUserLeftChannel
Register using UserLeftChannel delegate.
Definition: TeamTalkSrv.cs:300
SaveServerConfig OnSaveServerConfig
Register using SaveServerConfig delegate.
Definition: TeamTalkSrv.cs:423
delegate void UserDisconnected(ref User lpUser)
Callback when user has disconnected.
UserJoinedChannel OnUserJoinedChannel
Register using UserJoinedChannel delegate.
Definition: TeamTalkSrv.cs:289
FileDeleted OnFileDeleted
Register using FileDeleted delegate.
Definition: TeamTalkSrv.cs:398
delegate void UserTimedout(ref User lpUser)
Callback when a user's connection has timed out.
UserTextMessage OnUserTextMessage
Register using UserTextMessage delegate.
Definition: TeamTalkSrv.cs:326
UserBanned OnUserBanned
Register using UserBanned delegate.
Definition: TeamTalkSrv.cs:255
delegate void UserMoved(ref User lpMover, ref User lpMovee)
Callback when a user has been moved.
delegate void ChannelUpdated(ref Channel lpChannel, ref User lpUser)
Callback when a channel has been updated.
delegate void UserKicked(ref User lpKicker, ref User lpKickee, ref Channel lpChannel)
Callback when a user has been kicked.
delegate void UserUpdated(ref User lpUser)
Callback when a user's properties are being updated.
UserUnbanned OnUserUnbanned
Register using UserUnbanned delegate.
Definition: TeamTalkSrv.cs:268
delegate void UserBanned(ref User lpBanner, ref User lpBanee, IntPtr lpChannel)
Callback when a user has been banned.
delegate void UserUnbanned(ref User lpUnbanner, string szIPAddress)
Callback when a ban is removed.
UserUpdated OnUserUpdated
Register using UserUpdated delegate.
Definition: TeamTalkSrv.cs:278
delegate void ChannelCreated(ref Channel lpChannel, ref User lpUser)
Callback when a new channel has been created.
delegate void FileUploaded(ref RemoteFile lpRemoteFile, ref User lpUser)
Callback when a new file has been uploaded to a channel.
delegate void UserLoggedOut(ref User lpUser)
Callback when a user has logged out.
UserTimedout OnUserTimedout
Register using UserTimedout delegate.
Definition: TeamTalkSrv.cs:230
UserConnected OnUserConnected
Register using UserConnected delegate.
Definition: TeamTalkSrv.cs:188
A struct containing the properties of a channel.
Definition: TeamTalk.cs:2579
A struct containing the properties of a file in a BearWare.Channel.
Definition: TeamTalk.cs:2812
A struct containing the properties of the server's settings.
Definition: TeamTalk.cs:1877
A struct containing the properties of a text message sent by a user.
Definition: TeamTalk.cs:2501
A struct containing the properties of a user account.
Definition: TeamTalk.cs:2112
A struct containing the properties of a user.
Definition: TeamTalk.cs:2293