说明

GioSocketConnectionfactory_register_type

自:2.22

声明 [src]

void
g_socket_connection_factory_register_type (
  GType g_type,
  GSocketFamily family,
  GSocketType type,
  gint protocol
)

描述 [src]

寻找用于在指定 familytypeprotocol 的套接字上创建套接字连接时应使用的 GType

如果没有注册任何类型,则返回 GSocketConnection 基础类型。

自:2.22

参数

g_type

类型: GType

一个继承自 G_TYPE_SOCKET_CONNECTIONGType

family

类型: GSocketFamily

GSocketFamily

type

类型: GSocketType

GSocketType

protocol

类型: gint

协议ID。