方法

GioSocketget_keepalive

since: 2.22

声明 [src]

gboolean
g_socket_get_keepalive (
  GSocket* socket
)

描述 [src]

获取套接字的存活状态。有关详细信息,请参阅g_socket_set_keepalive()。

Available since: 2.22

获取属性Gio.Socket:keepalive

返回值

类型: gboolean

TRUE 如果保持连接(keepalive)激活,否则为 FALSE