internal static extern ushort SelfGetTcpPort(ToxHandle tox, ref ToxErrorGetPort error);
/// <summary> /// Retrieves the UDP port this instance of Tox is bound to. /// </summary> /// <param name="error"></param> /// <returns>The UDP port on success.</returns> public int GetUdpPort(out ToxErrorGetPort error) { ThrowIfDisposed(); error = ToxErrorGetPort.Ok; return ToxFunctions.SelfGetUdpPort(_tox, ref error); }
internal static extern ushort SelfGetUdpPort(ToxHandle tox, ref ToxErrorGetPort error);
public static extern UInt16 GetTcpPort(ToxHandle tox, ref ToxErrorGetPort error);