Stefan Schuermans
Makefile fixed for MAC OS X, removed version information from soure files
Stefan Schuermans commited a6637d3 at 2011-09-10 13:38:14
/* BlinkenLib
* Copyright 2004-2011 Stefan Schuermans <stefan@blinkenarea.org>
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
* a blinkenarea.org project
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#include <winsock2.h>
#define close closesocket
#else
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#include <BlinkenLib/BlinkenLib.h>
int main( int argCnt, char * * args )
{
int i, bound, val, timeout;
SOCKET udpSocket;
char txt[64];
unsigned short port;
struct sockaddr_in addr;
stBlinkenMovie * pMovie;
//print info
printf( "BlinkenLib - BlinkenRecv\n"
"config "BLINKENLIB_CONFIG"\n"
"Copyright 2004-2011 Stefan Schuermans <stefan@blinkenarea.org>\n"
"Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html\n"
"a blinkenarea.org project\n\n" );
//print syntax
if( argCnt <= 1 )
{
printf( "syntax: %s <parameter> [...]\n\n"
"parameters:\n"
" -l [<ip>:]<port>\n"
" local address (defaults to 0.0.0.0:2323)\n"
" must occur before -r and -o, may only occur once\n"
" -r <ip>[:<port>]\n"
" remote addess (defaults to every remote address)\n"
" -t <milliseconds>\n"
" set timeout (to detect movie end, defaults to 5000)\n"
" -o <file>\n"
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX