当前位置: 首页>>代码示例>>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;未经允许,请勿转载。