New API for doing socket IO. Works both synchronously and asynchronously,
authorDan Winship <danw@src.gnome.org>
Tue, 19 Aug 2003 19:04:09 +0000 (19:04 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 19 Aug 2003 19:04:09 +0000 (19:04 +0000)
commit6d5196ec11a0e771000e325b34606e0d16057d78
treec2d1702158d145ee4ac7a3ce55e627c7b7626dbc
parent7eba036e63a0246e4b4642288b2b682e0c0759f0
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)
16 files changed:
ChangeLog
libsoup/soup-connection.c
libsoup/soup-connection.h
libsoup/soup-error.h
libsoup/soup-message.c
libsoup/soup-queue.c
libsoup/soup-server.c
libsoup/soup-socket.c
libsoup/soup-socket.h
libsoup/soup-transfer.c
libsoup/soup-transfer.h
libsoup/soup-uri.c
tests/.cvsignore
tests/Makefile.am
tests/revserver.c [new file with mode: 0644]
tests/timeserver.c [deleted file]