Table of Contents

Class SocketConnection

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

Constructors

SocketConnection(bool, params ConstructArgument[])

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

Parameters

owned bool
constructArguments ConstructArgument[]

SocketConnection(IntPtr, bool)

protected SocketConnection(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

SocketPropertyDefinition

public static readonly Property<Socket?, SocketConnection> SocketPropertyDefinition

Field Value

Property<Socket, SocketConnection>

Properties

Socket

public Socket? Socket { get; }

Property Value

Socket

Methods

Connect(SocketAddress, Cancellable?)

[Version("2.32")]
public bool Connect(SocketAddress address, Cancellable? cancellable)

Parameters

address SocketAddress
cancellable Cancellable

Returns

bool

ConnectFinish(AsyncResult)

[Version("2.32")]
public bool ConnectFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

FactoryLookupType(SocketFamily, SocketType, int)

[Version("2.22")]
public static Type FactoryLookupType(SocketFamily family, SocketType type, int protocolId)

Parameters

family SocketFamily
type SocketType
protocolId int

Returns

Type

FactoryRegisterType(Type, SocketFamily, SocketType, int)

[Version("2.22")]
public static void FactoryRegisterType(Type gType, SocketFamily family, SocketType type, int protocol)

Parameters

gType Type
family SocketFamily
type SocketType
protocol int

GetGType()

public static Type GetGType()

Returns

Type

GetLocalAddress()

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

Returns

SocketAddress

GetRemoteAddress()

[Version("2.22")]
public SocketAddress GetRemoteAddress()

Returns

SocketAddress

GetSocket()

[Version("2.22")]
public Socket GetSocket()

Returns

Socket

IsConnected()

[Version("2.32")]
public bool IsConnected()

Returns

bool