aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-14 08:46:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-14 08:46:59 +0800
commite258958d9e75e263f477102e305de0de88ccfe4b (patch)
tree579b1ece61273ce5a80b11d79f1a1de32755789d /camel/camel-tcp-stream.h
parent2309c677b4061f206ba8e3cc3cc6804634b9a359 (diff)
downloadgsoc2013-evolution-e258958d9e75e263f477102e305de0de88ccfe4b.tar.gz
gsoc2013-evolution-e258958d9e75e263f477102e305de0de88ccfe4b.tar.zst
gsoc2013-evolution-e258958d9e75e263f477102e305de0de88ccfe4b.zip
Oops. Make this a subclass of CamelTcpStream, not CamelStream.
2001-03-13 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-ssl.c (camel_tcp_stream_ssl_get_type): Oops. Make this a subclass of CamelTcpStream, not CamelStream. * camel-types.h: Add the defs for CamelTcpStream and CamelTcpStreamRaw * Makefile.am: Add camel-tcp-stream and camel-tcp-stream-raw to the build. * camel-remote-store.c (remote_connect): Update to use CamelTcpStreams. * camel-tcp-stream-raw.c (stream_connect): Made cancellable by copying the currently used code in camel-remote-store.c. (stream_setsockopt): Oops, flags = fcntl (..., GET_FL); (camel_tcp_stream_raw_get_type): Oops. Make this a subclass of CamelTcpStream, not CamelStream. svn path=/trunk/; revision=8697
Diffstat (limited to 'camel/camel-tcp-stream.h')
-rw-r--r--camel/camel-tcp-stream.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/camel/camel-tcp-stream.h b/camel/camel-tcp-stream.h
index 56afa7a1fd..79d3f90f08 100644
--- a/camel/camel-tcp-stream.h
+++ b/camel/camel-tcp-stream.h
@@ -35,6 +35,7 @@ extern "C" {
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
+#include <netdb.h>
#include <unistd.h>
#define CAMEL_TCP_STREAM_TYPE (camel_tcp_stream_get_type ())
@@ -99,16 +100,16 @@ typedef struct {
int (*connect) (CamelTcpStream *stream, struct hostent *host, int port);
int (*getsockopt) (CamelTcpStream *stream, CamelSockOptData *data);
int (*setsockopt) (CamelTcpStream *stream, const CamelSockOptData *data);
-
+
} CamelTcpStreamClass;
/* Standard Camel function */
CamelType camel_tcp_stream_get_type (void);
/* public methods */
-int camel_tcp_stream_connect (CamelTcpStream *stream, struct hostent *host, int port);
-int camel_tcp_stream_getsockopt (CamelTcpStream *stream, CamelSockOptData *data);
-int camel_tcp_stream_setsockopt (CamelTcpStream *stream, const CamelSockOptData *data);
+int camel_tcp_stream_connect (CamelTcpStream *stream, struct hostent *host, int port);
+int camel_tcp_stream_getsockopt (CamelTcpStream *stream, CamelSockOptData *data);
+int camel_tcp_stream_setsockopt (CamelTcpStream *stream, const CamelSockOptData *data);
#ifdef __cplusplus
}