#include <gio/gio.h>

/* Compile with: 'gcc `pkg-config gio-2.0 --cflags` -o connecterr network.c `pkg-config gio-2.0 --libs`' */
int main()
{
	GError *err = NULL;
	
	g_type_init();
	g_print("Connecting...\n");
	g_socket_client_connect_to_host(g_socket_client_new(),
							"google.com",
							55445, //Google ignores connections on non-standard ports
							NULL,
							&err);
	g_print("%s\n", err->message);
	
	return 0;
}
