source: trunk/third/gnome-vfs/libgnomevfs/gnome-vfs-inet-connection.h @ 17128

Revision 17128, 2.1 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17127, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* gnome-vfs-inet-connection.h - Functions for creating and destroying Internet
3   connections.
4
5   Copyright (C) 1999 Free Software Foundation
6
7   The Gnome Library is free software; you can redistribute it and/or
8   modify it under the terms of the GNU Library General Public License as
9   published by the Free Software Foundation; either version 2 of the
10   License, or (at your option) any later version.
11
12   The Gnome Library is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15   Library General Public License for more details.
16
17   You should have received a copy of the GNU Library General Public
18   License along with the Gnome Library; see the file COPYING.LIB.  If not,
19   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20   Boston, MA 02111-1307, USA.
21
22   Author: Ettore Perazzoli <ettore@gnu.org> */
23
24#ifndef GNOME_VFS_INET_CONNECTION_H
25#define GNOME_VFS_INET_CONNECTION_H
26
27#include <libgnomevfs/gnome-vfs-cancellation.h>
28#include <libgnomevfs/gnome-vfs-iobuf.h>
29#include <libgnomevfs/gnome-vfs-socket.h>
30
31typedef struct GnomeVFSInetConnection GnomeVFSInetConnection;
32
33GnomeVFSResult   gnome_vfs_inet_connection_create
34                                        (GnomeVFSInetConnection **connection_return,
35                                         const gchar *host_name,
36                                         guint host_port,
37                                         GnomeVFSCancellation *cancellation);
38
39/* free the connection structure and close the socket */
40void             gnome_vfs_inet_connection_destroy
41                                        (GnomeVFSInetConnection *connection,
42                                         GnomeVFSCancellation *cancellation);
43
44/* free the connection structure without closing the socket */
45void             gnome_vfs_inet_connection_free
46                                        (GnomeVFSInetConnection *connection,
47                                         GnomeVFSCancellation *cancellation);
48
49GnomeVFSIOBuf   *gnome_vfs_inet_connection_get_iobuf
50                                        (GnomeVFSInetConnection *connection);
51
52GnomeVFSSocket * gnome_vfs_inet_connection_to_socket
53                                        (GnomeVFSInetConnection *connection);
54
55int gnome_vfs_inet_connection_get_fd   (GnomeVFSInetConnection *connection);
56
57#endif /* GNOME_VFS_INET_CONNECTION_H */
Note: See TracBrowser for help on using the repository browser.