You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.9 KiB
C
71 lines
1.9 KiB
C
9 years ago
|
/*
|
||
|
* Secure X Message Passing Library v2 examples.
|
||
|
*
|
||
|
* (c) Alexander Vdolainen 2013-2015 <avdolainen@gmail.com>
|
||
|
*
|
||
|
* 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 <http://www.gnu.org/licenses/>.";
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* 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.
|
||
|
*/
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <dirent.h>
|
||
|
#define __USE_GNU
|
||
|
#include <stdlib.h>
|
||
|
#include <stdarg.h>
|
||
|
#include <sys/types.h>
|
||
|
#include <limits.h>
|
||
|
#include <sys/select.h>
|
||
|
#include <sys/wait.h>
|
||
|
#include <sys/socket.h>
|
||
|
#include <sys/resource.h>
|
||
|
#include <netdb.h>
|
||
|
#include <unistd.h>
|
||
|
#include <uuid/uuid.h>
|
||
|
#include <execinfo.h>
|
||
|
#include <netinet/in.h>
|
||
|
|
||
|
#include <tdata/usrtc.h>
|
||
|
#include <sexpr/sexp.h>
|
||
|
#include <sxmp/limits.h>
|
||
|
#include <sxmp/sxmp.h>
|
||
|
|
||
|
#include <pthread.h>
|
||
|
#include <stdint.h>
|
||
|
#include <getopt.h>
|
||
|
#include <errno.h>
|
||
|
|
||
|
#include "filelist.h"
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
int opt;
|
||
|
|
||
|
return 0;
|
||
|
}
|