コード例 #1
0
ファイル: ToxFunctions.cs プロジェクト: tf2017/toxofone
 internal static extern ushort SelfGetTcpPort(ToxHandle tox, ref ToxErrorGetPort error);
コード例 #2
0
ファイル: Tox.cs プロジェクト: hexafluoride/Detox
        /// <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);
        }
コード例 #3
0
ファイル: ToxFunctions.cs プロジェクト: WELL-E/SharpTox
 internal static extern ushort SelfGetUdpPort(ToxHandle tox, ref ToxErrorGetPort error);
コード例 #4
0
ファイル: ToxFunctions.cs プロジェクト: Tornjk/SharpTox
 public static extern UInt16 GetTcpPort(ToxHandle tox, ref ToxErrorGetPort error);