syndilights/blib-1.1.7/blib/bsocket.h

43 lines
1.3 KiB
C

/* blib - Library of useful things to hack the Blinkenlights
*
* Copyright (c) 2001-2004 The Blinkenlights Crew
* Sven Neumann <sven@gimp.org>
* Daniel Mack <daniel@yoobay.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __B_SOCKET_H__
#define __B_SOCKET_H__
G_BEGIN_DECLS
typedef enum
{
B_SO_NONE = 0,
B_SO_BROADCAST = 1 << 0,
B_SO_REUSEADDR = 1 << 1
} BSocketOptions;
gboolean b_socket_init (GError **error);
gint b_socket_udp_new (BSocketOptions options,
GError **error);
G_END_DECLS
#endif /* __B_SOCKET_H__ */