Table of Contents

Class SocketClient

Namespace
Gio
Assembly
Gio-2.0.dll
public class SocketClient : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
SocketClient
Implements
Inherited Members

Constructors

SocketClient(bool, params ConstructArgument[])

protected SocketClient(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

SocketClient(IntPtr, bool)

protected SocketClient(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

EnableProxyPropertyDefinition

public static readonly Property<bool, SocketClient> EnableProxyPropertyDefinition

Field Value

Property<bool, SocketClient>

EventSignal

Signal Descriptor for OnEvent.

public static readonly Signal<SocketClient, SocketClient.EventSignalArgs> EventSignal

Field Value

Signal<SocketClient, SocketClient.EventSignalArgs>

FamilyPropertyDefinition

public static readonly Property<SocketFamily, SocketClient> FamilyPropertyDefinition

Field Value

Property<SocketFamily, SocketClient>

LocalAddressPropertyDefinition

public static readonly Property<SocketAddress?, SocketClient> LocalAddressPropertyDefinition

Field Value

Property<SocketAddress, SocketClient>

ProtocolPropertyDefinition

public static readonly Property<SocketProtocol, SocketClient> ProtocolPropertyDefinition

Field Value

Property<SocketProtocol, SocketClient>

ProxyResolverPropertyDefinition

public static readonly Property<ProxyResolver, SocketClient> ProxyResolverPropertyDefinition

Field Value

Property<ProxyResolver, SocketClient>

TimeoutPropertyDefinition

public static readonly Property<uint, SocketClient> TimeoutPropertyDefinition

Field Value

Property<uint, SocketClient>

TlsPropertyDefinition

public static readonly Property<bool, SocketClient> TlsPropertyDefinition

Field Value

Property<bool, SocketClient>

TlsValidationFlagsPropertyDefinition

public static readonly Property<TlsCertificateFlags, SocketClient> TlsValidationFlagsPropertyDefinition

Field Value

Property<TlsCertificateFlags, SocketClient>

TypePropertyDefinition

public static readonly Property<SocketType, SocketClient> TypePropertyDefinition

Field Value

Property<SocketType, SocketClient>

Properties

EnableProxy

public bool EnableProxy { get; set; }

Property Value

bool

Family

public SocketFamily Family { get; set; }

Property Value

SocketFamily

LocalAddress

public SocketAddress? LocalAddress { get; set; }

Property Value

SocketAddress

Protocol

public SocketProtocol Protocol { get; set; }

Property Value

SocketProtocol

ProxyResolver

public ProxyResolver ProxyResolver { get; set; }

Property Value

ProxyResolver

Timeout

public uint Timeout { get; set; }

Property Value

uint

Tls

public bool Tls { get; set; }

Property Value

bool

TlsValidationFlags

public TlsCertificateFlags TlsValidationFlags { get; set; }

Property Value

TlsCertificateFlags

Type

public SocketType Type { get; set; }

Property Value

SocketType

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 SocketConnectable
cancellable Cancellable

Returns

SocketConnection

ConnectFinish(AsyncResult)

[Version("2.22")]
public SocketConnection ConnectFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

SocketConnection

ConnectToHost(string, ushort, Cancellable?)

[Version("2.22")]
public SocketConnection ConnectToHost(string hostAndPort, ushort defaultPort, Cancellable? cancellable)

Parameters

hostAndPort string
defaultPort ushort
cancellable Cancellable

Returns

SocketConnection

ConnectToHostFinish(AsyncResult)

[Version("2.22")]
public SocketConnection ConnectToHostFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

SocketConnection

ConnectToService(string, string, Cancellable?)

public SocketConnection ConnectToService(string domain, string service, Cancellable? cancellable)

Parameters

domain string
service string
cancellable Cancellable

Returns

SocketConnection

ConnectToServiceFinish(AsyncResult)

[Version("2.22")]
public SocketConnection ConnectToServiceFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

SocketConnection

ConnectToUri(string, ushort, Cancellable?)

[Version("2.26")]
public SocketConnection ConnectToUri(string uri, ushort defaultPort, Cancellable? cancellable)

Parameters

uri string
defaultPort ushort
cancellable Cancellable

Returns

SocketConnection

ConnectToUriFinish(AsyncResult)

[Version("2.26")]
public SocketConnection ConnectToUriFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

SocketConnection

GetEnableProxy()

[Version("2.26")]
public bool GetEnableProxy()

Returns

bool

GetFamily()

[Version("2.22")]
public SocketFamily GetFamily()

Returns

SocketFamily

GetGType()

public static Type GetGType()

Returns

Type

GetLocalAddress()

[Version("2.22")]
public SocketAddress? GetLocalAddress()

Returns

SocketAddress

GetProtocol()

[Version("2.22")]
public SocketProtocol GetProtocol()

Returns

SocketProtocol

GetProxyResolver()

[Version("2.36")]
public ProxyResolver GetProxyResolver()

Returns

ProxyResolver

GetSocketType()

[Version("2.22")]
public SocketType GetSocketType()

Returns

SocketType

GetTimeout()

[Version("2.26")]
public uint GetTimeout()

Returns

uint

GetTls()

[Version("2.28")]
public bool GetTls()

Returns

bool

GetTlsValidationFlags()

[Version("2.28")]
public TlsCertificateFlags GetTlsValidationFlags()

Returns

TlsCertificateFlags

New()

[Version("2.22")]
public static SocketClient New()

Returns

SocketClient

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

Event Type

SignalHandler<SocketClient, SocketClient.EventSignalArgs>