Class SocketListener
public class SocketListener
- Inheritance
-
SocketListener
- Inherited Members
Methods
Accept(IntPtr, out IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_accept. Version: 2.22
[Version("2.22")]
public static extern IntPtr Accept(IntPtr listener, out IntPtr sourceObject, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
AcceptAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_socket_listener_accept_async. Version: 2.22
[Version("2.22")]
public static extern void AcceptAsync(IntPtr listener, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
AcceptFinish(IntPtr, IntPtr, out IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_accept_finish. Version: 2.22
[Version("2.22")]
public static extern IntPtr AcceptFinish(IntPtr listener, IntPtr result, out IntPtr sourceObject, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
AcceptSocket(IntPtr, out IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_accept_socket. Version: 2.22
[Version("2.22")]
public static extern IntPtr AcceptSocket(IntPtr listener, out IntPtr sourceObject, IntPtr cancellable, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
cancellable
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
AcceptSocketAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)
Calls native method g_socket_listener_accept_socket_async. Version: 2.22
[Version("2.22")]
public static extern void AcceptSocketAsync(IntPtr listener, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
cancellable
IntPtrTransfer ownership: None Nullable: True
callback
AsyncReadyCallbackTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
AcceptSocketFinish(IntPtr, IntPtr, out IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_accept_socket_finish. Version: 2.22
[Version("2.22")]
public static extern IntPtr AcceptSocketFinish(IntPtr listener, IntPtr result, out IntPtr sourceObject, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
result
IntPtrTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
AddAddress(IntPtr, IntPtr, SocketType, SocketProtocol, IntPtr, out IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_add_address. Version: 2.22
[Version("2.22")]
public static extern bool AddAddress(IntPtr listener, IntPtr address, SocketType type, SocketProtocol protocol, IntPtr sourceObject, out IntPtr effectiveAddress, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
address
IntPtrTransfer ownership: None Nullable: False
type
SocketTypeTransfer ownership: None Nullable: False
protocol
SocketProtocolTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
effectiveAddress
IntPtrTransfer ownership: Full Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
AddAnyInetPort(IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_add_any_inet_port. Version: 2.24
[Version("2.24")]
public static extern ushort AddAnyInetPort(IntPtr listener, IntPtr sourceObject, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- ushort
Transfer ownership: None Nullable: False
AddInetPort(IntPtr, ushort, IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_add_inet_port. Version: 2.22
[Version("2.22")]
public static extern bool AddInetPort(IntPtr listener, ushort port, IntPtr sourceObject, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
port
ushortTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
AddSocket(IntPtr, IntPtr, IntPtr, out ErrorOwnedHandle)
Calls native method g_socket_listener_add_socket. Version: 2.22
[Version("2.22")]
public static extern bool AddSocket(IntPtr listener, IntPtr socket, IntPtr sourceObject, out ErrorOwnedHandle error)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
socket
IntPtrTransfer ownership: None Nullable: False
sourceObject
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
Close(IntPtr)
Calls native method g_socket_listener_close. Version: 2.22
[Version("2.22")]
public static extern void Close(IntPtr listener)
Parameters
listener
IntPtrTransfer ownership: None Nullable: False
GetGType()
Calls native function g_socket_listener_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
New()
Calls native constructor g_socket_listener_new. Version: 2.22
[Version("2.22")]
public static extern IntPtr New()
Returns
- IntPtr
Transfer ownership: Full Nullable: False
SetBacklog(IntPtr, int)
Calls native method g_socket_listener_set_backlog. Version: 2.22
[Version("2.22")]
public static extern void SetBacklog(IntPtr listener, int listenBacklog)