本文整理匯總了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);