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
constructArguments
ConstructArgument[]
SocketClient(SocketClientHandle)
public SocketClient(SocketClientHandle handle)
Parameters
handle
SocketClientHandle
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
protocol
string
Connect(SocketConnectable, Cancellable?)
[Version("2.22")]
public SocketConnection Connect(SocketConnectable connectable, Cancellable? cancellable)
Parameters
connectable
SocketConnectablecancellable
Cancellable
Returns
ConnectFinish(AsyncResult)
[Version("2.22")]
public SocketConnection ConnectFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
ConnectToHost(string, ushort, Cancellable?)
[Version("2.22")]
public SocketConnection ConnectToHost(string hostAndPort, ushort defaultPort, Cancellable? cancellable)
Parameters
hostAndPort
stringdefaultPort
ushortcancellable
Cancellable
Returns
ConnectToHostFinish(AsyncResult)
[Version("2.22")]
public SocketConnection ConnectToHostFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
ConnectToService(string, string, Cancellable?)
public SocketConnection ConnectToService(string domain, string service, Cancellable? cancellable)
Parameters
domain
stringservice
stringcancellable
Cancellable
Returns
ConnectToServiceFinish(AsyncResult)
[Version("2.22")]
public SocketConnection ConnectToServiceFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
ConnectToUri(string, ushort, Cancellable?)
[Version("2.26")]
public SocketConnection ConnectToUri(string uri, ushort defaultPort, Cancellable? cancellable)
Parameters
uri
stringdefaultPort
ushortcancellable
Cancellable
Returns
ConnectToUriFinish(AsyncResult)
[Version("2.26")]
public SocketConnection ConnectToUriFinish(AsyncResult result)
Parameters
result
AsyncResult
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
enable
bool
SetFamily(SocketFamily)
[Version("2.22")]
public void SetFamily(SocketFamily family)
Parameters
family
SocketFamily
SetLocalAddress(SocketAddress?)
[Version("2.22")]
public void SetLocalAddress(SocketAddress? address)
Parameters
address
SocketAddress
SetProtocol(SocketProtocol)
[Version("2.22")]
public void SetProtocol(SocketProtocol protocol)
Parameters
protocol
SocketProtocol
SetProxyResolver(ProxyResolver?)
[Version("2.36")]
public void SetProxyResolver(ProxyResolver? proxyResolver)
Parameters
proxyResolver
ProxyResolver
SetSocketType(SocketType)
[Version("2.22")]
public void SetSocketType(SocketType type)
Parameters
type
SocketType
SetTimeout(uint)
[Version("2.26")]
public void SetTimeout(uint timeout)
Parameters
timeout
uint
SetTls(bool)
[Version("2.28")]
public void SetTls(bool tls)
Parameters
tls
bool
SetTlsValidationFlags(TlsCertificateFlags)
[Version("2.28")]
public void SetTlsValidationFlags(TlsCertificateFlags flags)
Parameters
flags
TlsCertificateFlags
Events
OnEvent
public event SignalHandler<SocketClient, SocketClient.EventSignalArgs> OnEvent