source: trunk/tools/neercs/old/mini-socket.h @ 1642

Last change on this file since 1642 was 1642, checked in by sam, 7 years ago

neercs: import files from the (unfinished) old neercs code.

  • Property svn:keywords set to Id
File size: 951 bytes
Line 
1/*
2 *  neercs        console-based window manager
3 *  Copyright (c) 2006-2010 Sam Hocevar <sam@hocevar.net>
4 *                2008-2010 Jean-Yves Lamoureux <jylam@lnxscene.org>
5 *                2008-2010 Pascal Terjan <pterjan@linuxfr.org>
6 *                All Rights Reserved
7 *
8 *  This program is free software. It comes without any warranty, to
9 *  the extent permitted by applicable law. You can redistribute it
10 *  and/or modify it under the terms of the Do What The Fuck You Want
11 *  To Public License, Version 2, as published by Sam Hocevar. See
12 *  http://sam.zoy.org/wtfpl/COPYING for more details.
13 */
14
15#include <sys/types.h>
16
17typedef struct nrx_socket nrx_socket_t;
18
19nrx_socket_t * socket_open(char const *path, int server);
20int socket_select(nrx_socket_t *sock, int usecs);
21int socket_puts(nrx_socket_t *sock, char const *str);
22ssize_t socket_read(nrx_socket_t *sock, void *buf, size_t count);
23void socket_close(nrx_socket_t *socket);
24
Note: See TracBrowser for help on using the repository browser.