예제 #1
0
 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
 internal static extern ushort SelfGetUdpPort(ToxHandle tox, ref ToxErrorGetPort error);
예제 #4
0
 public static extern UInt16 GetTcpPort(ToxHandle tox, ref ToxErrorGetPort error);