Class SocketClient
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class SocketClient : Object, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
SocketClient
- Implements
- Inherited Members
Constructors
SocketClient(params ConstructArgument[])
public SocketClient(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
SocketClient(SocketClientHandle)
public SocketClient(SocketClientHandle handle)
Parameters
handleSocketClientHandle
Fields
EnableProxyPropertyDefinition
public static readonly Property<bool, SocketClient> EnableProxyPropertyDefinition
Field Value
EventSignal
Signal Descriptor for OnEvent.
public static readonly Signal<SocketClient, SocketClient.EventSignalArgs> EventSignal
Field Value
FamilyPropertyDefinition
public static readonly Property<SocketFamily, SocketClient> FamilyPropertyDefinition
Field Value
LocalAddressPropertyDefinition
public static readonly Property<SocketAddress?, SocketClient> LocalAddressPropertyDefinition
Field Value
ProtocolPropertyDefinition
public static readonly Property<SocketProtocol, SocketClient> ProtocolPropertyDefinition
Field Value
ProxyResolverPropertyDefinition
public static readonly Property<ProxyResolver, SocketClient> ProxyResolverPropertyDefinition
Field Value
TimeoutPropertyDefinition
public static readonly Property<uint, SocketClient> TimeoutPropertyDefinition
Field Value
TlsPropertyDefinition
public static readonly Property<bool, SocketClient> TlsPropertyDefinition
Field Value
TlsValidationFlagsPropertyDefinition
public static readonly Property<TlsCertificateFlags, SocketClient> TlsValidationFlagsPropertyDefinition
Field Value
TypePropertyDefinition
public static readonly Property<SocketType, SocketClient> TypePropertyDefinition
Field Value
Properties
EnableProxy
public bool EnableProxy { get; set; }
Property Value
Family
public SocketFamily Family { get; set; }
Property Value
LocalAddress
public SocketAddress? LocalAddress { get; set; }
Property Value
Protocol
public SocketProtocol Protocol { get; set; }
Property Value
ProxyResolver
public ProxyResolver ProxyResolver { get; set; }
Property Value
Timeout
public uint Timeout { get; set; }
Property Value
Tls
public bool Tls { get; set; }
Property Value
TlsValidationFlags
public TlsCertificateFlags TlsValidationFlags { get; set; }
Property Value
Type
public SocketType Type { get; set; }
Property Value
Methods
AddApplicationProxy(string)
public void AddApplicationProxy(string protocol)
Parameters
protocolstring
Connect(SocketConnectable, Cancellable?)
[Version("2.22")]
public SocketConnection Connect(SocketConnectable connectable, Cancellable? cancellable)
Parameters
connectableSocketConnectablecancellableCancellable
Returns
ConnectFinish(AsyncResult)
[Version("2.22")]
public SocketConnection ConnectFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ConnectToHost(string, ushort, Cancellable?)
[Version("2.22")]
public SocketConnection ConnectToHost(string hostAndPort, ushort defaultPort, Cancellable? cancellable)
Parameters
hostAndPortstringdefaultPortushortcancellableCancellable
Returns
ConnectToHostFinish(AsyncResult)
[Version("2.22")]
public SocketConnection ConnectToHostFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ConnectToService(string, string, Cancellable?)
public SocketConnection ConnectToService(string domain, string service, Cancellable? cancellable)
Parameters
domainstringservicestringcancellableCancellable
Returns
ConnectToServiceFinish(AsyncResult)
[Version("2.22")]
public SocketConnection ConnectToServiceFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ConnectToUri(string, ushort, Cancellable?)
[Version("2.26")]
public SocketConnection ConnectToUri(string uri, ushort defaultPort, Cancellable? cancellable)
Parameters
uristringdefaultPortushortcancellableCancellable
Returns
ConnectToUriFinish(AsyncResult)
[Version("2.26")]
public SocketConnection ConnectToUriFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetEnableProxy()
[Version("2.26")]
public bool GetEnableProxy()
Returns
GetFamily()
[Version("2.22")]
public SocketFamily GetFamily()
Returns
GetGType()
public static Type GetGType()
Returns
GetLocalAddress()
[Version("2.22")]
public SocketAddress? GetLocalAddress()
Returns
GetProtocol()
[Version("2.22")]
public SocketProtocol GetProtocol()
Returns
GetProxyResolver()
[Version("2.36")]
public ProxyResolver GetProxyResolver()
Returns
GetSocketType()
[Version("2.22")]
public SocketType GetSocketType()
Returns
GetTimeout()
[Version("2.26")]
public uint GetTimeout()
Returns
GetTls()
[Version("2.28")]
public bool GetTls()
Returns
GetTlsValidationFlags()
[Version("2.28")]
public TlsCertificateFlags GetTlsValidationFlags()
Returns
New()
[Version("2.22")]
public static SocketClient New()
Returns
SetEnableProxy(bool)
[Version("2.26")]
public void SetEnableProxy(bool enable)
Parameters
enablebool
SetFamily(SocketFamily)
[Version("2.22")]
public void SetFamily(SocketFamily family)
Parameters
familySocketFamily
SetLocalAddress(SocketAddress?)
[Version("2.22")]
public void SetLocalAddress(SocketAddress? address)
Parameters
addressSocketAddress
SetProtocol(SocketProtocol)
[Version("2.22")]
public void SetProtocol(SocketProtocol protocol)
Parameters
protocolSocketProtocol
SetProxyResolver(ProxyResolver?)
[Version("2.36")]
public void SetProxyResolver(ProxyResolver? proxyResolver)
Parameters
proxyResolverProxyResolver
SetSocketType(SocketType)
[Version("2.22")]
public void SetSocketType(SocketType type)
Parameters
typeSocketType
SetTimeout(uint)
[Version("2.26")]
public void SetTimeout(uint timeout)
Parameters
timeoutuint
SetTls(bool)
[Version("2.28")]
public void SetTls(bool tls)
Parameters
tlsbool
SetTlsValidationFlags(TlsCertificateFlags)
[Version("2.28")]
public void SetTlsValidationFlags(TlsCertificateFlags flags)
Parameters
flagsTlsCertificateFlags
Events
OnEvent
public event SignalHandler<SocketClient, SocketClient.EventSignalArgs> OnEvent