summaryrefslogtreecommitdiff
path: root/libsoup/soup-socket.h
diff options
context:
space:
mode:
authorAlex Graveley <alex@ximian.com>2001-09-29 01:03:53 +0000
committerAlex Graveley <orph@src.gnome.org>2001-09-29 01:03:53 +0000
commit5595036f7767ad292412f031ac19245fec42e92c (patch)
treef65cc0da2f40b608f1d56437e37bfa3445a7c5cc /libsoup/soup-socket.h
parentedb0faace07046c2f3f3a15ba37d8dbdf9c2a6d4 (diff)
downloadlibsoup-5595036f7767ad292412f031ac19245fec42e92c.tar.gz
Add soup-socket-win.c.
2001-09-28 Alex Graveley <alex@ximian.com> * build/libsoup.dsp (SOURCE): Add soup-socket-win.c. * tests/simple-test.c (main): Take HTTP method and body parameters to use in the request. * src/libsoup/soup-socket.h: Make soup_gethostbyname and soup_gethostbyaddr public. * src/libsoup/soup-socket-unix.c: Added, split of networking code into unix-specific sections. * src/libsoup/soup-socket-win.c: Added, Windows networking code. * src/libsoup/soup-socket.c: Holds common socket functions.
Diffstat (limited to 'libsoup/soup-socket.h')
-rw-r--r--libsoup/soup-socket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libsoup/soup-socket.h b/libsoup/soup-socket.h
index c1a6e5e3..9b242ff2 100644
--- a/libsoup/soup-socket.h
+++ b/libsoup/soup-socket.h
@@ -15,6 +15,15 @@
#define SOUP_SOCKET_H 1
#include <glib.h>
+#include <sys/socket.h>
+
+gboolean soup_gethostbyname (const gchar *hostname,
+ struct sockaddr_in *sa,
+ gchar **nicename);
+
+gchar *soup_gethostbyaddr (const gchar *addr,
+ size_t length,
+ int type);
typedef struct _SoupAddress SoupAddress;