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