Esempio n. 1
0
        public ToxOptions()
        {
            var err = ToxErrorOptionsNew.Ok;

            try
            {
                this.options = ToxFunctions.Options.New(ref err);
            }
            catch (DllNotFoundException)
            {
                throw new InvalidOperationException($"The underlying {Extern.DLL} was not found. Make sure it's the same folder as the executing binary.");
            }

            if (err != ToxErrorOptionsNew.Ok)
            {
                throw new InvalidOperationException();
            }
        }
Esempio n. 2
0
 public static extern void SetIpv6Enabled(ToxOptionsHandle options, Boolean ipv6_enabled);
Esempio n. 3
0
 public static extern void Default(ToxOptionsHandle options);
Esempio n. 4
0
 public static extern UInt16 GetStartPort(ToxOptionsHandle options);
Esempio n. 5
0
 public static extern UInt16 GetProxyPort(ToxOptionsHandle options);
Esempio n. 6
0
 public static extern String GetProxyHost(ToxOptionsHandle options);
Esempio n. 7
0
 public static extern ToxProxyType GetProxyType(ToxOptionsHandle options);
Esempio n. 8
0
 public static extern Boolean GetLocalDiscoveryEnabled(ToxOptionsHandle options);
Esempio n. 9
0
 public static extern void SetSavedataType(ToxOptionsHandle options, ToxSavedataType type);
Esempio n. 10
0
 public static extern ToxSavedataType GetSavedataType(ToxOptionsHandle options);
Esempio n. 11
0
 public static extern void SetHolePunchingEnabled(ToxOptionsHandle options, Boolean hole_punching_enabled);
Esempio n. 12
0
 public static extern Boolean GetHolePunchingEnabled(ToxOptionsHandle options);
Esempio n. 13
0
 public static extern void SetTcpPort(ToxOptionsHandle options, UInt16 tcp_port);
Esempio n. 14
0
 public static extern void SetEndPort(ToxOptionsHandle options, UInt16 end_port);
Esempio n. 15
0
 public static extern void SetStartPort(ToxOptionsHandle options, UInt16 start_port);
Esempio n. 16
0
 public static extern Boolean GetUdpEnabled(ToxOptionsHandle options);
Esempio n. 17
0
 public static extern void SetUdpEnabled(ToxOptionsHandle options, Boolean udp_enabled);
Esempio n. 18
0
 public static extern IntPtr GetSavedataData(ToxOptionsHandle options);
Esempio n. 19
0
 public static extern void SetLocalDiscoveryEnabled(ToxOptionsHandle options, Boolean local_discovery_enabled);
Esempio n. 20
0
 public static extern void SetSavedataData(ToxOptionsHandle options, IntPtr data, SizeT length);
Esempio n. 21
0
 public static extern void SetProxyType(ToxOptionsHandle options, ToxProxyType proxy_type);
Esempio n. 22
0
 public static extern SizeT GetSavedataLength(ToxOptionsHandle options);
Esempio n. 23
0
 public static extern void SetProxyHost(ToxOptionsHandle options, [In, MarshalAs(UnmanagedType.LPStr)] String proxy_host);
Esempio n. 24
0
 public static extern void SetSavedataLength(ToxOptionsHandle options, SizeT length);
Esempio n. 25
0
 public static extern ToxHandle New(ToxOptionsHandle options, ref ToxErrorNew error);
Esempio n. 26
0
 public static extern void SetProxyPort(ToxOptionsHandle options, UInt16 proxy_port);