/* * Secure X Message Passing Library v2 examples. * * (c) Alexander Vdolainen 2013-2015 * * libsxmp 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 3 of the License, or * (at your option) any later version. * * libsxmp 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 General Public License * along with this program. If not, see ."; * */ /* * This is an example of sxmp usage. * NOTE: It was developed quite fast within one day, * btw - this the reason of some ugly code here. * * This is a master or simply - daemon part, it will * listen a requests and create a stream with directory entries, * which ridden by the client. * This implements a simple client-server topology, to see * more advanced technics check out other examples. * * NOTE(win32): don't have a time to test it or fix it to * make it works on windows, if you can - u're welcome. */ #ifndef __SXMP_EXAMPLES_FILELIST_H__ #define __SXMP_EXAMPLES_FILELIST_H__ #define DEFAULT_PORT 10240 #define READONLY_CHANNEL 8 #define WRITE_CHANNEL 16 #define CONTROL_CHANNEL 20 #define DEBUG #define FREE(x) { if (x) { free(x); x = NULL; } } #define MAX_STREAMS INT_MAX #define DIRLIST_ID 1 #endif /*__SXMP_EXAMPLES_FILELIST_H__*/