aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-16 08:54:18 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-16 08:54:18 +0800
commitd9b76e981fae89ad0da878cb8bb5b261a9988ddd (patch)
tree8119a880d3de3786fde249a088370b1dfc132daf /camel/camel-tcp-stream.h
parentbaffaa57693681c163723962445551c677f8f51b (diff)
downloadgsoc2013-evolution-d9b76e981fae89ad0da878cb8bb5b261a9988ddd.tar
gsoc2013-evolution-d9b76e981fae89ad0da878cb8bb5b261a9988ddd.tar.gz
gsoc2013-evolution-d9b76e981fae89ad0da878cb8bb5b261a9988ddd.tar.bz2
gsoc2013-evolution-d9b76e981fae89ad0da878cb8bb5b261a9988ddd.tar.lz
gsoc2013-evolution-d9b76e981fae89ad0da878cb8bb5b261a9988ddd.tar.xz
gsoc2013-evolution-d9b76e981fae89ad0da878cb8bb5b261a9988ddd.tar.zst
gsoc2013-evolution-d9b76e981fae89ad0da878cb8bb5b261a9988ddd.zip
If the close() is successful, set the fd to -1.
2001-01-15 Jeffrey Stedfast <fejj@ximian.com> * camel-stream-fs.c (stream_close): If the close() is successful, set the fd to -1. * camel-tcp-stream-raw.c: Removed the disconnect() method. (stream_close): If the close() is successful, set the sockfd to -1. * camel-tcp-stream-ssl.c: Removed the disconnect() method. (stream_close): If the close() is successful, set the sockfd to NULL. * camel-tcp-stream.c (camel_tcp_stream_disconnect): Removed, easier to just use the close() method as it did the same thing anyway. svn path=/trunk/; revision=7522
Diffstat (limited to 'camel/camel-tcp-stream.h')
-rw-r--r--camel/camel-tcp-stream.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/camel/camel-tcp-stream.h b/camel/camel-tcp-stream.h
index 63ad6e7ec4..56afa7a1fd 100644
--- a/camel/camel-tcp-stream.h
+++ b/camel/camel-tcp-stream.h
@@ -97,7 +97,6 @@ typedef struct {
/* Virtual methods */
int (*connect) (CamelTcpStream *stream, struct hostent *host, int port);
- int (*disconnect) (CamelTcpStream *stream);
int (*getsockopt) (CamelTcpStream *stream, CamelSockOptData *data);
int (*setsockopt) (CamelTcpStream *stream, const CamelSockOptData *data);
@@ -108,7 +107,6 @@ 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_disconnect (CamelTcpStream *stream);
int camel_tcp_stream_getsockopt (CamelTcpStream *stream, CamelSockOptData *data);
int camel_tcp_stream_setsockopt (CamelTcpStream *stream, const CamelSockOptData *data);