Import all the highlevel socket classes from gnio
[platform/upstream/glib.git] / gio / gtcpconnection.c
1 /* GIO - GLib Input, Output and Streaming Library
2  *
3  * Copyright © 2008, 2009 Codethink Limited
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published
7  * by the Free Software Foundation; either version 2 of the licence or (at
8  * your option) any later version.
9  *
10  * See the included COPYING file for more information.
11  */
12
13 /**
14  * SECTION: gtcpconnection
15  * @title: GTcpConnection
16  * @short_description: a TCP #GSocketConnection
17  * @see_also: #GSocketConnection.
18  *
19  * This is the subclass of #GSocketConnection that is created
20  * for TCP/IP sockets.
21  *
22  * It is currently empty; it offers no additional functionality
23  * over its base class.
24  *
25  * Eventually, some TCP-specific socket stuff will be added.
26  *
27  * Since: 2.22
28  **/
29
30 #include "config.h"
31 #include "gtcpconnection.h"
32 #include "glibintl.h"
33
34 #include "gioalias.h"
35
36 G_DEFINE_TYPE_WITH_CODE (GTcpConnection, g_tcp_connection,
37                          G_TYPE_SOCKET_CONNECTION,
38   g_socket_connection_factory_register_type (g_define_type_id,
39                                              G_SOCKET_FAMILY_IPV4,
40                                              G_SOCKET_TYPE_STREAM,
41                                              0);
42   g_socket_connection_factory_register_type (g_define_type_id,
43                                              G_SOCKET_FAMILY_IPV6,
44                                              G_SOCKET_TYPE_STREAM,
45                                              0);
46   g_socket_connection_factory_register_type (g_define_type_id,
47                                              G_SOCKET_FAMILY_IPV4,
48                                              G_SOCKET_TYPE_STREAM,
49                                              g_socket_protocol_id_lookup_by_name ("tcp"));
50   g_socket_connection_factory_register_type (g_define_type_id,
51                                              G_SOCKET_FAMILY_IPV6,
52                                              G_SOCKET_TYPE_STREAM,
53                                              g_socket_protocol_id_lookup_by_name ("tcp"));
54                          );
55
56 static void
57 g_tcp_connection_init (GTcpConnection *connection)
58 {
59 }
60
61 static void
62 g_tcp_connection_class_init (GTcpConnectionClass *class)
63 {
64 }
65
66 #define __G_TCP_CONNECTION_C__
67 #include "gioaliasdef.c"