本文整理汇总了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;
}
示例2: SelfGetStatusMessage
internal static extern void SelfGetStatusMessage(ToxHandle tox, byte[] status);
示例3: FriendGetStatusMessage
internal static extern bool FriendGetStatusMessage(ToxHandle tox, uint friendNumber, byte[] message, ref ToxErrorFriendQuery error);
示例4: FriendGetPublicKey
internal static extern bool FriendGetPublicKey(ToxHandle tox, uint friendNumber, byte[] publicKey, ref ToxErrorFriendGetPublicKey error);
示例5: FriendGetLastOnline
internal static extern ulong FriendGetLastOnline(ToxHandle tox, uint friendNumber, ref ToxErrorFriendGetLastOnline error);
示例6: FriendExists
internal static extern bool FriendExists(ToxHandle tox, uint friendNumber);
示例7: FriendByPublicKey
internal static extern uint FriendByPublicKey(ToxHandle tox, byte[] publicKey, ref ToxErrorFriendByPublicKey error);
示例8: SelfSetTyping
internal static extern bool SelfSetTyping(ToxHandle tox, uint friendNumber, [MarshalAs(UnmanagedType.Bool)]bool is_typing, ref ToxErrorSetTyping error);
示例9: SelfSetStatusMessage
internal static extern void SelfSetStatusMessage(ToxHandle tox, byte[] status, uint length, ref ToxErrorSetInfo error);
示例10: SelfSetStatus
internal static extern void SelfSetStatus(ToxHandle tox, ToxUserStatus status);
示例11: SelfSetNospam
internal static extern void SelfSetNospam(ToxHandle tox, uint nospam);
示例12: SelfSetName
internal static extern bool SelfSetName(ToxHandle tox, byte[] name, uint length, ref ToxErrorSetInfo error);
示例13: SelfGetUdpPort
internal static extern ushort SelfGetUdpPort(ToxHandle tox, ref ToxErrorGetPort error);
示例14: SelfGetStatusMessageSize
internal static extern uint SelfGetStatusMessageSize(ToxHandle tox);
示例15: FriendAdd
internal static extern uint FriendAdd(ToxHandle tox, byte[] address, byte[] message, uint length, ref ToxErrorFriendAdd error);