當前位置: 首頁>>代碼示例>>C#>>正文


C# Core.ToxHandle類代碼示例

本文整理匯總了C#中SharpTox.Core.ToxHandle的典型用法代碼示例。如果您正苦於以下問題:C# ToxHandle類的具體用法?C# ToxHandle怎麽用?C# ToxHandle使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ToxHandle類屬於SharpTox.Core命名空間,在下文中一共展示了ToxHandle類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: ToxAv

        /// <summary>
        /// Initialises a new instance of toxav.
        /// </summary>
        /// <param name="tox"></param>
        /// <param name="maxCalls"></param>
        public ToxAv(ToxHandle tox, int maxCalls)
        {
            _tox = tox;
            _toxAv = ToxAvFunctions.New(tox, maxCalls);

            if (_toxAv == null || _toxAv.IsInvalid)
                throw new Exception("Could not create a new instance of toxav.");

            MaxCalls = maxCalls;
        }
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:15,代碼來源:ToxAv.cs

示例2: SelfGetStatusMessage

 internal static extern void SelfGetStatusMessage(ToxHandle tox, byte[] status);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例3: FriendGetStatusMessage

 internal static extern bool FriendGetStatusMessage(ToxHandle tox, uint friendNumber, byte[] message, ref ToxErrorFriendQuery error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例4: FriendGetPublicKey

 internal static extern bool FriendGetPublicKey(ToxHandle tox, uint friendNumber, byte[] publicKey, ref ToxErrorFriendGetPublicKey error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例5: FriendGetLastOnline

 internal static extern ulong FriendGetLastOnline(ToxHandle tox, uint friendNumber, ref ToxErrorFriendGetLastOnline error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例6: FriendExists

 internal static extern bool FriendExists(ToxHandle tox, uint friendNumber);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例7: FriendByPublicKey

 internal static extern uint FriendByPublicKey(ToxHandle tox, byte[] publicKey, ref ToxErrorFriendByPublicKey error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例8: SelfSetTyping

 internal static extern bool SelfSetTyping(ToxHandle tox, uint friendNumber, [MarshalAs(UnmanagedType.Bool)]bool is_typing, ref ToxErrorSetTyping error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例9: SelfSetStatusMessage

 internal static extern void SelfSetStatusMessage(ToxHandle tox, byte[] status, uint length, ref ToxErrorSetInfo error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例10: SelfSetStatus

 internal static extern void SelfSetStatus(ToxHandle tox, ToxUserStatus status);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例11: SelfSetNospam

 internal static extern void SelfSetNospam(ToxHandle tox, uint nospam);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例12: SelfSetName

 internal static extern bool SelfSetName(ToxHandle tox, byte[] name, uint length, ref ToxErrorSetInfo error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例13: SelfGetUdpPort

 internal static extern ushort SelfGetUdpPort(ToxHandle tox, ref ToxErrorGetPort error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例14: SelfGetStatusMessageSize

 internal static extern uint SelfGetStatusMessageSize(ToxHandle tox);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs

示例15: FriendAdd

 internal static extern uint FriendAdd(ToxHandle tox, byte[] address, byte[] message, uint length, ref ToxErrorFriendAdd error);
開發者ID:WELL-E,項目名稱:SharpTox,代碼行數:1,代碼來源:ToxFunctions.cs


注:本文中的SharpTox.Core.ToxHandle類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。