~vcs-imports/gnome-media/main

« back to all changes in this revision

Viewing changes to cddb-slave2/tcp.h

  • Committer: thomasvs
  • Date: 2004-05-10 08:52:25 UTC
  • Revision ID: vcs-imports@canonical.com-20040510085225-zb6tqc12yi1h08gd
remove unneccesary whitespace

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * Library General Public License for more details.
14
14
 *
15
15
 * You should have received a copy of the GNU Library General Public
16
 
 * License along with this library; if not, write to the 
 
16
 * License along with this library; if not, write to the
17
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
18
 * Boston, MA  02111-1307, USA.
19
19
 */
45
45
 
46
46
/**
47
47
 *   GTcpSocketConnectAsyncID:
48
 
 * 
 
48
 *
49
49
 *   ID of an asynchronous connection started with
50
50
 *   gnet_tcp_socket_connect_async().  The connection can be canceled
51
51
 *   by calling gnet_tcp_socket_connect_async_cancel() with the ID.
57
57
 
58
58
/**
59
59
 *   GTcpSocketConnectAsyncStatus:
60
 
 * 
 
60
 *
61
61
 *   Status for connecting via gnet_tcp_socket_connect_async(), passed
62
62
 *   by GTcpSocketConnectAsyncFunc.  More errors may be added in the
63
63
 *   future, so it's best to compare against
78
78
 *   @ia: InetAddr of the TcpSocket
79
79
 *   @status: Status of the connection
80
80
 *   @data: User data
81
 
 *   
 
81
 *
82
82
 *   Callback for gnet_tcp_socket_connect_async().
83
83
 *
84
84
 **/
85
 
typedef void (*GTcpSocketConnectAsyncFunc)(GTcpSocket* socket, 
 
85
typedef void (*GTcpSocketConnectAsyncFunc)(GTcpSocket* socket,
86
86
                                           GInetAddr* ia,
87
 
                                           GTcpSocketConnectAsyncStatus status, 
 
87
                                           GTcpSocketConnectAsyncStatus status,
88
88
                                           gpointer data);
89
89
 
90
90
 
91
91
/**
92
92
 *   GTcpSocketNewAsyncID:
93
 
 * 
 
93
 *
94
94
 *   ID of an asynchronous tcp socket creation started with
95
95
 *   gnet_tcp_socket_new_async().  The creation can be canceled by
96
96
 *   calling gnet_tcp_socket_new_async_cancel() with the ID.
102
102
 
103
103
/**
104
104
 *   GTcpSocketAsyncStatus:
105
 
 * 
 
105
 *
106
106
 *   Status for connecting via gnet_tcp_socket_new_async(), passed by
107
107
 *   GTcpSocketNewAsyncFunc.  More errors may be added in the future,
108
108
 *   so it's best to compare against %GTCP_SOCKET_NEW_ASYNC_STATUS_OK.
120
120
 *   @socket: Socket that was connecting
121
121
 *   @status: Status of the connection
122
122
 *   @data: User data
123
 
 *   
 
123
 *
124
124
 *   Callback for gnet_tcp_socket_new_async().
125
125
 *
126
126
 **/
127
 
typedef void (*GTcpSocketNewAsyncFunc)(GTcpSocket* socket, 
128
 
                                       GTcpSocketNewAsyncStatus status, 
 
127
typedef void (*GTcpSocketNewAsyncFunc)(GTcpSocket* socket,
 
128
                                       GTcpSocketNewAsyncStatus status,
129
129
                                       gpointer data);
130
130
 
131
131
 
139
139
 
140
140
/* Quick and easy asynchronous constructor */
141
141
GTcpSocketConnectAsyncID
142
 
gnet_tcp_socket_connect_async (const gchar* hostname, gint port, 
143
 
                               GTcpSocketConnectAsyncFunc func, 
 
142
gnet_tcp_socket_connect_async (const gchar* hostname, gint port,
 
143
                               GTcpSocketConnectAsyncFunc func,
144
144
                               gpointer data);
145
145
 
146
146
/* Cancel quick and easy asynchronous constructor */
150
150
GTcpSocket* gnet_tcp_socket_new (const GInetAddr* addr);
151
151
 
152
152
/* Asynchronous constructor */
153
 
GTcpSocketNewAsyncID 
154
 
gnet_tcp_socket_new_async (const GInetAddr* addr, 
 
153
GTcpSocketNewAsyncID
 
154
gnet_tcp_socket_new_async (const GInetAddr* addr,
155
155
                           GTcpSocketNewAsyncFunc func,
156
156
                           gpointer data);
157
157