Class SocketConnection
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class SocketConnection : IOStream, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
SocketConnection
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
SocketConnection(params ConstructArgument[])
public SocketConnection(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
SocketConnection(SocketConnectionHandle)
public SocketConnection(SocketConnectionHandle handle)
Parameters
handle
SocketConnectionHandle
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