Statistics
| Revision:

root / libsylph / recv.h @ 1513

History | View | Annotate | Download (1.4 kB)

1 1 hiro
/*
2 578 hiro
 * LibSylph -- E-Mail client library
3 578 hiro
 * Copyright (C) 1999-2005 Hiroyuki Yamamoto
4 1 hiro
 *
5 578 hiro
 * This library is free software; you can redistribute it and/or
6 578 hiro
 * modify it under the terms of the GNU Lesser General Public
7 578 hiro
 * License as published by the Free Software Foundation; either
8 578 hiro
 * version 2.1 of the License, or (at your option) any later version.
9 1 hiro
 *
10 578 hiro
 * This library is distributed in the hope that it will be useful,
11 1 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 578 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 578 hiro
 * Lesser General Public License for more details.
14 1 hiro
 *
15 578 hiro
 * You should have received a copy of the GNU Lesser General Public
16 578 hiro
 * License along with this library; if not, write to the Free Software
17 578 hiro
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 1 hiro
 */
19 1 hiro
20 1 hiro
#ifndef __RECV_H__
21 1 hiro
#define __RECV_H__
22 1 hiro
23 1 hiro
#include <glib.h>
24 1 hiro
25 1 hiro
#include "socket.h"
26 1 hiro
27 1 hiro
typedef gboolean (*RecvUIFunc)        (SockInfo        *sock,
28 1 hiro
                                 gint                 count,
29 1 hiro
                                 gint                 read_bytes,
30 1 hiro
                                 gpointer         data);
31 1 hiro
32 627 hiro
gchar *recv_bytes                (SockInfo        *sock,
33 627 hiro
                                 glong                 size);
34 627 hiro
35 1 hiro
gint recv_write_to_file                (SockInfo        *sock,
36 1 hiro
                                 const gchar        *filename);
37 1 hiro
gint recv_bytes_write_to_file        (SockInfo        *sock,
38 1 hiro
                                 glong                 size,
39 1 hiro
                                 const gchar        *filename);
40 1 hiro
gint recv_write                        (SockInfo        *sock,
41 1 hiro
                                 FILE                *fp);
42 1 hiro
gint recv_bytes_write                (SockInfo        *sock,
43 1 hiro
                                 glong                 size,
44 1 hiro
                                 FILE                *fp);
45 1 hiro
46 1 hiro
void recv_set_ui_func                (RecvUIFunc         func,
47 1 hiro
                                 gpointer         data);
48 1 hiro
49 1 hiro
#endif /* __RECV_H__ */