summaryrefslogtreecommitdiff
path: root/libsoup/soup-connection.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-08-19 19:04:09 +0000
committerDan Winship <danw@src.gnome.org>2003-08-19 19:04:09 +0000
commit6d5196ec11a0e771000e325b34606e0d16057d78 (patch)
treec2d1702158d145ee4ac7a3ce55e627c7b7626dbc /libsoup/soup-connection.h
parent7eba036e63a0246e4b4642288b2b682e0c0759f0 (diff)
downloadlibsoup-6d5196ec11a0e771000e325b34606e0d16057d78.tar.gz
New API for doing socket IO. Works both synchronously and asynchronously,
* libsoup/soup-socket.c (soup_socket_read, soup_socket_read_until, soup_socket_write): New API for doing socket IO. Works both synchronously and asynchronously, and buffers data to prevent the "100 Continue" problem. (soup_socket_set_flag): Replaces formerly-private soup_set_sockopts. (primarily to let the caller turn off SOUP_SOCKET_FLAG_NONBLOCKING). * libsoup/soup-transfer.c (soup_transfer_read, soup_transfer_write, soup_transfer_write_simple): Take a SoupSocket instead of a GIOChannel. Use the new socket IO api. Changed the prototypes of some of the callbacks to be less hackish. * libsoup/soup-connection.c (soup_connection_get_socket): Replaces soup_connection_get_iochannel. * libsoup/soup-message.c: Fix up for soup-transfer changes * libsoup/soup-queue.c: Likewise * libsoup/soup-server.c: Likewise * tests/revserver.c: A slightly more complicated replacement for timeserver. (Does both reads and writes)
Diffstat (limited to 'libsoup/soup-connection.h')
-rw-r--r--libsoup/soup-connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-connection.h b/libsoup/soup-connection.h
index 70d4d4ca..8d197221 100644
--- a/libsoup/soup-connection.h
+++ b/libsoup/soup-connection.h
@@ -41,7 +41,7 @@ void soup_connection_start_ssl (SoupConnection *conn);
void soup_connection_disconnect (SoupConnection *conn);
gboolean soup_connection_is_connected (SoupConnection *conn);
-GIOChannel *soup_connection_get_iochannel (SoupConnection *conn);
+SoupSocket *soup_connection_get_socket (SoupConnection *conn);
void soup_connection_set_in_use (SoupConnection *conn,
gboolean in_use);