• Home
  • Raw
  • Download

Lines Matching refs:connection

100   GSocketConnection *connection = G_SOCKET_CONNECTION (io_stream);  in G_DEFINE_TYPE_WITH_PRIVATE()  local
102 if (connection->priv->input_stream == NULL) in G_DEFINE_TYPE_WITH_PRIVATE()
103 connection->priv->input_stream = (GInputStream *) in G_DEFINE_TYPE_WITH_PRIVATE()
104 _g_socket_input_stream_new (connection->priv->socket); in G_DEFINE_TYPE_WITH_PRIVATE()
106 return connection->priv->input_stream; in G_DEFINE_TYPE_WITH_PRIVATE()
112 GSocketConnection *connection = G_SOCKET_CONNECTION (io_stream); in g_socket_connection_get_output_stream() local
114 if (connection->priv->output_stream == NULL) in g_socket_connection_get_output_stream()
115 connection->priv->output_stream = (GOutputStream *) in g_socket_connection_get_output_stream()
116 _g_socket_output_stream_new (connection->priv->socket); in g_socket_connection_get_output_stream()
118 return connection->priv->output_stream; in g_socket_connection_get_output_stream()
133 g_socket_connection_is_connected (GSocketConnection *connection) in g_socket_connection_is_connected() argument
135 return g_socket_is_connected (connection->priv->socket); in g_socket_connection_is_connected()
152 g_socket_connection_connect (GSocketConnection *connection, in g_socket_connection_connect() argument
157 g_return_val_if_fail (G_IS_SOCKET_CONNECTION (connection), FALSE); in g_socket_connection_connect()
160 return g_socket_connect (connection->priv->socket, address, in g_socket_connection_connect()
186 g_socket_connection_connect_async (GSocketConnection *connection, in g_socket_connection_connect_async() argument
195 g_return_if_fail (G_IS_SOCKET_CONNECTION (connection)); in g_socket_connection_connect_async()
198 task = g_task_new (connection, cancellable, callback, user_data); in g_socket_connection_connect_async()
201 g_socket_set_blocking (connection->priv->socket, FALSE); in g_socket_connection_connect_async()
203 if (g_socket_connect (connection->priv->socket, address, in g_socket_connection_connect_async()
214 source = g_socket_create_source (connection->priv->socket, in g_socket_connection_connect_async()
233 GSocketConnection *connection = g_task_get_source_object (task); in g_socket_connection_connect_callback() local
236 if (g_socket_check_connect_result (connection->priv->socket, &error)) in g_socket_connection_connect_callback()
258 g_socket_connection_connect_finish (GSocketConnection *connection, in g_socket_connection_connect_finish() argument
262 g_return_val_if_fail (G_IS_SOCKET_CONNECTION (connection), FALSE); in g_socket_connection_connect_finish()
263 g_return_val_if_fail (g_task_is_valid (result, connection), FALSE); in g_socket_connection_connect_finish()
281 g_socket_connection_get_socket (GSocketConnection *connection) in g_socket_connection_get_socket() argument
283 g_return_val_if_fail (G_IS_SOCKET_CONNECTION (connection), NULL); in g_socket_connection_get_socket()
285 return connection->priv->socket; in g_socket_connection_get_socket()
301 g_socket_connection_get_local_address (GSocketConnection *connection, in g_socket_connection_get_local_address() argument
304 return g_socket_get_local_address (connection->priv->socket, error); in g_socket_connection_get_local_address()
327 g_socket_connection_get_remote_address (GSocketConnection *connection, in g_socket_connection_get_remote_address() argument
330 if (!g_socket_is_connected (connection->priv->socket)) in g_socket_connection_get_remote_address()
332 return connection->priv->cached_remote_address ? in g_socket_connection_get_remote_address()
333 g_object_ref (connection->priv->cached_remote_address) : NULL; in g_socket_connection_get_remote_address()
335 return g_socket_get_remote_address (connection->priv->socket, error); in g_socket_connection_get_remote_address()
344 g_socket_connection_set_cached_remote_address (GSocketConnection *connection, in g_socket_connection_set_cached_remote_address() argument
347 g_clear_object (&connection->priv->cached_remote_address); in g_socket_connection_set_cached_remote_address()
348 connection->priv->cached_remote_address = address ? g_object_ref (address) : NULL; in g_socket_connection_set_cached_remote_address()
357 GSocketConnection *connection = G_SOCKET_CONNECTION (object); in g_socket_connection_get_property() local
362 g_value_set_object (value, connection->priv->socket); in g_socket_connection_get_property()
376 GSocketConnection *connection = G_SOCKET_CONNECTION (object); in g_socket_connection_set_property() local
381 connection->priv->socket = G_SOCKET (g_value_dup_object (value)); in g_socket_connection_set_property()
393 GSocketConnection *connection = G_SOCKET_CONNECTION (object); in g_socket_connection_constructed() local
396 g_assert (connection->priv->socket != NULL); in g_socket_connection_constructed()
402 GSocketConnection *connection = G_SOCKET_CONNECTION (object); in g_socket_connection_dispose() local
404 connection->priv->in_dispose = TRUE; in g_socket_connection_dispose()
406 g_clear_object (&connection->priv->cached_remote_address); in g_socket_connection_dispose()
411 connection->priv->in_dispose = FALSE; in g_socket_connection_dispose()
417 GSocketConnection *connection = G_SOCKET_CONNECTION (object); in g_socket_connection_finalize() local
419 if (connection->priv->input_stream) in g_socket_connection_finalize()
420 g_object_unref (connection->priv->input_stream); in g_socket_connection_finalize()
422 if (connection->priv->output_stream) in g_socket_connection_finalize()
423 g_object_unref (connection->priv->output_stream); in g_socket_connection_finalize()
425 g_object_unref (connection->priv->socket); in g_socket_connection_finalize()
461 g_socket_connection_init (GSocketConnection *connection) in g_socket_connection_init() argument
463 connection->priv = g_socket_connection_get_instance_private (connection); in g_socket_connection_init()
471 GSocketConnection *connection = G_SOCKET_CONNECTION (stream); in g_socket_connection_close() local
473 if (connection->priv->output_stream) in g_socket_connection_close()
474 g_output_stream_close (connection->priv->output_stream, in g_socket_connection_close()
476 if (connection->priv->input_stream) in g_socket_connection_close()
477 g_input_stream_close (connection->priv->input_stream, in g_socket_connection_close()
486 if (connection->priv->in_dispose) in g_socket_connection_close()
489 return g_socket_close (connection->priv->socket, error); in g_socket_connection_close()