TeamTalk 5 .NET DLL: /cygdrive/c/tt5dist/TeamTalk5_x64/TeamTalk5/Library/TeamTalk.NET/TeamTalkSrv.cs Source File

TeamTalk 5 .NET DLL Version 5.18A

Loading...
Searching...
No Matches
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
24using System;
25using System.Collections.Generic;
26using System.Linq;
27using System.Text;
28using System.Runtime.InteropServices;
29using c_tt;
30
31namespace 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);
79 public event UserChangeNickname OnUserChangeNickname;
90 public delegate void UserChangeStatus(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref int nNewStatusMode, string szNewStatusMsg);
94 public event UserChangeStatus OnUserChangeStatus;
95
106 public delegate void UserCreateUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount);
110 public event UserCreateUserAccount OnUserCreateUserAccount;
111
122 public delegate void UserDeleteUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szUsername);
126 public event UserDeleteUserAccount OnUserDeleteUserAccount;
127
137 public delegate void UserAddServerBan(ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, ref User lpBanee);
141 public event UserAddServerBan OnUserAddServerBan;
142
153 public delegate void UserAddServerBanIPAddress(ref ClientErrorMsg lpClientErrorMsg,ref User lpBanner, string szIPAddress);
157 public event UserAddServerBanIPAddress OnUserAddServerBanIPAddress;
158
168 public delegate void UserDeleteServerBan(ref ClientErrorMsg lpClientErrorMsg,ref User lpUser, string szIPAddress);
172 public event UserDeleteServerBan OnUserDeleteServerBan;
173
183 public delegate void UserConnected(ref User lpUser);
184
188 public event UserConnected OnUserConnected;
189
197 public delegate void UserLoggedIn(ref User lpUser);
201 public event UserLoggedIn OnUserLoggedIn;
206 public delegate void UserLoggedOut(ref User lpUser);
210 public event UserLoggedOut OnUserLoggedOut;
211
216 public delegate void UserDisconnected(ref User lpUser);
220 public event UserDisconnected OnUserDisconnected;
221
226 public delegate void UserTimedout(ref User lpUser);
230 public event UserTimedout OnUserTimedout;
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);
268 public event UserUnbanned OnUserUnbanned;
269
274 public delegate void UserUpdated(ref User lpUser);
278 public event UserUpdated OnUserUpdated;
279
285 public delegate void UserJoinedChannel(ref User lpUser, ref Channel lpChannel);
289 public event UserJoinedChannel OnUserJoinedChannel;
290
296 public delegate void UserLeftChannel(ref User lpUser, ref Channel lpChannel);
300 public event UserLeftChannel OnUserLeftChannel;
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);
326 public event UserTextMessage OnUserTextMessage;
327
336 public delegate void ChannelCreated(ref Channel lpChannel,ref User lpUser);
340 public event ChannelCreated OnChannelCreated;
341
349 public delegate void ChannelUpdated(ref Channel lpChannel,ref User lpUser);
353 public event ChannelUpdated OnChannelUpdated;
354
361 public delegate void ChannelRemoved(ref Channel lpChannel,ref User lpUser);
365 public event ChannelRemoved OnChannelRemoved;
366
372 public delegate void FileUploaded(ref RemoteFile lpRemoteFile,ref User lpUser);
376 public event FileUploaded OnFileUploaded;
377
383 public delegate void FileDownloaded(ref RemoteFile lpRemoteFile,ref User lpUser);
387 public event FileDownloaded OnFileDownloaded;
388
394 public delegate void FileDeleted(ref RemoteFile lpRemoteFile,ref User lpUser);
398 public event FileDeleted OnFileDeleted;
399
407 public delegate void ServerUpdated(ref ServerProperties lpServerProperties,ref User lpUser);
411 public event ServerUpdated OnServerUpdated;
412
419 public delegate void SaveServerConfig(ref User lpUser);
423 public event SaveServerConfig OnSaveServerConfig;
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}
BearWare.TeamTalk5Srv
Instantiate this class to start a TeamTalk server.
Definition TeamTalkSrv.cs:44
BearWare.TeamTalkSrvBase
Base class for BearWare.TeamTalk5Srv.
Definition TeamTalkSrvBase.cs:38
BearWare.TeamTalk5Srv.TeamTalk5Srv
TeamTalk5Srv()
Instantiate TeamTalk server. Call UpdateServer() and MakeChannel() to setup server properties and roo...
Definition TeamTalkSrv.cs:438
BearWare.TeamTalk5Srv.TeamTalk5Srv
TeamTalk5Srv(Channel lpChannel, ServerProperties lpServerProperties)
Instantiate TeamTalk server with root channel and server properties.
Definition TeamTalkSrv.cs:460
BearWare.TeamTalk5Srv.TeamTalk5Srv
TeamTalk5Srv(Channel lpChannel)
Instantiate TeamTalk server with a root channel.
Definition TeamTalkSrv.cs:449
BearWare.TeamTalk5Srv.OnUserCreateUserAccount
UserCreateUserAccount OnUserCreateUserAccount
Register using #UserCreateUserAccount delegate.
Definition TeamTalkSrv.cs:110
BearWare.TeamTalk5Srv.OnUserDeleteUserAccount
UserDeleteUserAccount OnUserDeleteUserAccount
Register using #UserCreateUserAccount delegate.
Definition TeamTalkSrv.cs:126
BearWare.TeamTalk5Srv.UserLogin
delegate void UserLogin(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount)
Callback when a user is requesting to log on to the server.
BearWare.TeamTalk5Srv.UserCreateUserAccount
delegate void UserCreateUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref UserAccount lpUserAccount)
Callback when a user is requesting to create a new user account.
BearWare.TeamTalk5Srv.OnUserDeleteServerBan
UserDeleteServerBan OnUserDeleteServerBan
Register using #UserAddServerBanIPAddress delegate.
Definition TeamTalkSrv.cs:172
BearWare.TeamTalk5Srv.UserChangeStatus
delegate void UserChangeStatus(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, ref int nNewStatusMode, string szNewStatusMsg)
Callback when a user is requesting to change status.
BearWare.TeamTalk5Srv.OnUserChangeStatus
UserChangeStatus OnUserChangeStatus
Register using #UserChangeStatus delegate.
Definition TeamTalkSrv.cs:94
BearWare.TeamTalk5Srv.UserAddServerBanIPAddress
delegate void UserAddServerBanIPAddress(ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, string szIPAddress)
Callback when a user is requesting to ban an IP-address.
BearWare.TeamTalk5Srv.OnUserChangeNickname
UserChangeNickname OnUserChangeNickname
Register using #UserChangeNickname delegate.
Definition TeamTalkSrv.cs:79
BearWare.TeamTalk5Srv.UserDeleteUserAccount
delegate void UserDeleteUserAccount(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szUsername)
Callback when a user is requesting to delete a user account.
BearWare.TeamTalk5Srv.UserChangeNickname
delegate void UserChangeNickname(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szNewNickname)
Callback when a user is requesting to change nickname.
BearWare.TeamTalk5Srv.OnUserLogin
UserLogin OnUserLogin
Register using #UserLogin delegate.
Definition TeamTalkSrv.cs:64
BearWare.TeamTalk5Srv.UserAddServerBan
delegate void UserAddServerBan(ref ClientErrorMsg lpClientErrorMsg, ref User lpBanner, ref User lpBanee)
Callback when a user is requesting to ban a user.
BearWare.TeamTalk5Srv.OnUserAddServerBanIPAddress
UserAddServerBanIPAddress OnUserAddServerBanIPAddress
Register using #UserAddServerBan delegate.
Definition TeamTalkSrv.cs:157
BearWare.TeamTalk5Srv.UserDeleteServerBan
delegate void UserDeleteServerBan(ref ClientErrorMsg lpClientErrorMsg, ref User lpUser, string szIPAddress)
Callback when a user is requesting to remove a ban.
BearWare.TeamTalk5Srv.OnUserAddServerBan
UserAddServerBan OnUserAddServerBan
Register using #UserAddServerBan delegate.
Definition TeamTalkSrv.cs:141
BearWare.TeamTalk5Srv.OnUserMoved
UserMoved OnUserMoved
Register using #UserMoved delegate.
Definition TeamTalkSrv.cs:313
BearWare.TeamTalk5Srv.OnUserLoggedOut
UserLoggedOut OnUserLoggedOut
Register using #UserLoggedOut delegate.
Definition TeamTalkSrv.cs:210
BearWare.TeamTalk5Srv.OnChannelUpdated
ChannelUpdated OnChannelUpdated
Register using #ChannelUpdated delegate.
Definition TeamTalkSrv.cs:353
BearWare.TeamTalk5Srv.UserTextMessage
delegate void UserTextMessage(ref User lpUser, ref TextMessage lpTextMessage)
Callback when a user is sending a text message.
BearWare.TeamTalk5Srv.ChannelRemoved
delegate void ChannelRemoved(ref Channel lpChannel, ref User lpUser)
Callback when channel has been removed.
BearWare.TeamTalk5Srv.UserJoinedChannel
delegate void UserJoinedChannel(ref User lpUser, ref Channel lpChannel)
Callback when a user has joined a channel.
BearWare.TeamTalk5Srv.OnFileDownloaded
FileDownloaded OnFileDownloaded
Register using #FileDownloaded delegate.
Definition TeamTalkSrv.cs:387
BearWare.TeamTalk5Srv.UserConnected
delegate void UserConnected(ref User lpUser)
Callback when a new user is connecting to the server.
BearWare.TeamTalk5Srv.FileDeleted
delegate void FileDeleted(ref RemoteFile lpRemoteFile, ref User lpUser)
Callback when a user has deleted a file.
BearWare.TeamTalk5Srv.OnChannelRemoved
ChannelRemoved OnChannelRemoved
Register using #ChannelRemoved delegate.
Definition TeamTalkSrv.cs:365
BearWare.TeamTalk5Srv.UserLoggedIn
delegate void UserLoggedIn(ref User lpUser)
Callback when a user has logged in.
BearWare.TeamTalk5Srv.OnServerUpdated
ServerUpdated OnServerUpdated
Register using #ServerUpdated delegate.
Definition TeamTalkSrv.cs:411
BearWare.TeamTalk5Srv.OnUserKicked
UserKicked OnUserKicked
Register using #UserKicked delegate.
Definition TeamTalkSrv.cs:242
BearWare.TeamTalk5Srv.OnUserDisconnected
UserDisconnected OnUserDisconnected
Register using #UserDisconnected delegate.
Definition TeamTalkSrv.cs:220
BearWare.TeamTalk5Srv.OnUserLoggedIn
UserLoggedIn OnUserLoggedIn
Register using #UserLoggedIn delegate.
Definition TeamTalkSrv.cs:201
BearWare.TeamTalk5Srv.ServerUpdated
delegate void ServerUpdated(ref ServerProperties lpServerProperties, ref User lpUser)
Callback when a user has updated the server properties.
BearWare.TeamTalk5Srv.OnFileUploaded
FileUploaded OnFileUploaded
Register using #FileUploaded delegate.
Definition TeamTalkSrv.cs:376
BearWare.TeamTalk5Srv.SaveServerConfig
delegate void SaveServerConfig(ref User lpUser)
Callback when a user has reguested to save the server configuration.
BearWare.TeamTalk5Srv.UserLeftChannel
delegate void UserLeftChannel(ref User lpUser, ref Channel lpChannel)
Callback when a user has left a channel.
BearWare.TeamTalk5Srv.FileDownloaded
delegate void FileDownloaded(ref RemoteFile lpRemoteFile, ref User lpUser)
Callback when a user has downloaded a file.
BearWare.TeamTalk5Srv.OnChannelCreated
ChannelCreated OnChannelCreated
Register using #ChannelCreated delegate.
Definition TeamTalkSrv.cs:340
BearWare.TeamTalk5Srv.OnUserLeftChannel
UserLeftChannel OnUserLeftChannel
Register using #UserLeftChannel delegate.
Definition TeamTalkSrv.cs:300
BearWare.TeamTalk5Srv.OnSaveServerConfig
SaveServerConfig OnSaveServerConfig
Register using #SaveServerConfig delegate.
Definition TeamTalkSrv.cs:423
BearWare.TeamTalk5Srv.UserDisconnected
delegate void UserDisconnected(ref User lpUser)
Callback when user has disconnected.
BearWare.TeamTalk5Srv.OnUserJoinedChannel
UserJoinedChannel OnUserJoinedChannel
Register using #UserJoinedChannel delegate.
Definition TeamTalkSrv.cs:289
BearWare.TeamTalk5Srv.OnFileDeleted
FileDeleted OnFileDeleted
Register using #FileDeleted delegate.
Definition TeamTalkSrv.cs:398
BearWare.TeamTalk5Srv.UserTimedout
delegate void UserTimedout(ref User lpUser)
Callback when a user's connection has timed out.
BearWare.TeamTalk5Srv.OnUserTextMessage
UserTextMessage OnUserTextMessage
Register using #UserTextMessage delegate.
Definition TeamTalkSrv.cs:326
BearWare.TeamTalk5Srv.OnUserBanned
UserBanned OnUserBanned
Register using #UserBanned delegate.
Definition TeamTalkSrv.cs:255
BearWare.TeamTalk5Srv.UserMoved
delegate void UserMoved(ref User lpMover, ref User lpMovee)
Callback when a user has been moved.
BearWare.TeamTalk5Srv.ChannelUpdated
delegate void ChannelUpdated(ref Channel lpChannel, ref User lpUser)
Callback when a channel has been updated.
BearWare.TeamTalk5Srv.UserKicked
delegate void UserKicked(ref User lpKicker, ref User lpKickee, ref Channel lpChannel)
Callback when a user has been kicked.
BearWare.TeamTalk5Srv.UserUpdated
delegate void UserUpdated(ref User lpUser)
Callback when a user's properties are being updated.
BearWare.TeamTalk5Srv.OnUserUnbanned
UserUnbanned OnUserUnbanned
Register using #UserUnbanned delegate.
Definition TeamTalkSrv.cs:268
BearWare.TeamTalk5Srv.UserBanned
delegate void UserBanned(ref User lpBanner, ref User lpBanee, IntPtr lpChannel)
Callback when a user has been banned.
BearWare.TeamTalk5Srv.UserUnbanned
delegate void UserUnbanned(ref User lpUnbanner, string szIPAddress)
Callback when a ban is removed.
BearWare.TeamTalk5Srv.OnUserUpdated
UserUpdated OnUserUpdated
Register using #UserUpdated delegate.
Definition TeamTalkSrv.cs:278
BearWare.TeamTalk5Srv.ChannelCreated
delegate void ChannelCreated(ref Channel lpChannel, ref User lpUser)
Callback when a new channel has been created.
BearWare.TeamTalk5Srv.FileUploaded
delegate void FileUploaded(ref RemoteFile lpRemoteFile, ref User lpUser)
Callback when a new file has been uploaded to a channel.
BearWare.TeamTalk5Srv.UserLoggedOut
delegate void UserLoggedOut(ref User lpUser)
Callback when a user has logged out.
BearWare.TeamTalk5Srv.OnUserTimedout
UserTimedout OnUserTimedout
Register using #UserTimedout delegate.
Definition TeamTalkSrv.cs:230
BearWare.TeamTalk5Srv.OnUserConnected
UserConnected OnUserConnected
Register using #UserConnected delegate.
Definition TeamTalkSrv.cs:188
BearWare
Definition modules-net.txt:2
BearWare.Channel
A struct containing the properties of a channel.
Definition TeamTalk.cs:2563
BearWare.ClientErrorMsg
Definition TeamTalk.cs:3326
BearWare.RemoteFile
A struct containing the properties of a file in a BearWare.Channel.
Definition TeamTalk.cs:2796
BearWare.ServerProperties
A struct containing the properties of the server's settings.
Definition TeamTalk.cs:1854
BearWare.TextMessage
A struct containing the properties of a text message sent by a user.
Definition TeamTalk.cs:2485
BearWare.UserAccount
A struct containing the properties of a user account.
Definition TeamTalk.cs:2092
BearWare.User
A struct containing the properties of a user.
Definition TeamTalk.cs:2277