/*
    GSK - a library to write servers
    Copyright (C) 1999-2000 Dave Benson

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA

    Contact:
        daveb@ffem.org <Dave Benson>
*/


/* --- deprecated: use GskStreamSocket instead --- */

#ifndef __GSK_SOCKET_H_
#define __GSK_SOCKET_H_


#ifndef GSK_DISABLE_COMPAT
#include "gskstreamsocket.h"
#define GskSocket GskStreamSocket
#define gsk_socket_new_raw(fd, waiting)			\
	gsk_stream_socket_new_raw (fd, (waiting) ? (G_IO_IN|G_IO_OUT) : 0)
#define gsk_socket_new_from_pair gsk_stream_socket_new_from_pair
#define gsk_socket_read gsk_stream_socket_read
#define gsk_socket_write gsk_stream_socket_write
#define gsk_socket_writev gsk_stream_socket_writev
#define gsk_socket_shutdown gsk_stream_socket_shutdown
#define gsk_socket_finish_connecting gsk_stream_socket_finish_connecting
#define gsk_socket_errno gsk_stream_socket_errno
#define gsk_socket_strerror gsk_stream_socket_strerror
#define gsk_socket_delete(socket)	gtk_object_unref (GTK_OBJECT (socket))
#define gsk_socket_new_connecting_tcp gsk_stream_socket_new_connecting_tcp
#define gsk_socket_new_unix_connect gsk_stream_socket_new_connecting_unix
#endif

#endif
