Пример #1
0
 internal static extern ushort SelfGetTcpPort(ToxHandle tox, ref ToxErrorGetPort error);
Пример #2
0
        /// <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
 internal static extern ushort SelfGetUdpPort(ToxHandle tox, ref ToxErrorGetPort error);
Пример #4
0
 public static extern UInt16 GetTcpPort(ToxHandle tox, ref ToxErrorGetPort error);