860e91ba85e0070b3deb854f8a8e9952bceca480
Stefan Schuermans cleanup file headers after...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c   1) /* BlinkenLib
Stefan Schuermans update email address of author

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c   2)    Copyright 2004-2014 Stefan Schuermans <stefan@schuermans.info>
Stefan Schuermans cleanup file headers after...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c   3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
BlinkenLib/BlinkenSend.c   4)    a blinkenarea.org project */
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c              5) 
BlinkenSend.c              6) #include <stdio.h>
BlinkenSend.c              7) #include <stdlib.h>
BlinkenSend.c              8) #include <string.h>
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c              9) #ifdef WIN32
BlinkenSend.c             10) #include <winsock2.h>
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

BlinkenLib/BlinkenSend.c  11) #include <ws2tcpip.h>
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c             12) #define close closesocket
BlinkenSend.c             13) #define strcasecmp stricmp
BlinkenSend.c             14) #else
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c             15) #include <arpa/inet.h>
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       16) #include <netinet/in.h>
tools/BlinkenSend.c       17) #include <sys/socket.h>
tools/BlinkenSend.c       18) #include <sys/types.h>
tools/BlinkenSend.c       19) #include <unistd.h>
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c             20) #endif
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c             21) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  22) #include "Tools2.h"
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       23) #include <BlinkenLib/BlinkenLib.h>
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c             24) 
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       25) int main(int argCnt, char **args) {
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  26)   int i, connected, ipv6;
BlinkenLib/BlinkenSend.c  27)   SOCKET udpSocket, tmpSock;
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c             28)   etBlinkenProto proto;
Christian Heimke BlinkenLib v.0.5.4 (2008-01...

Christian Heimke authored 13 years ago

BlinkenSend.c             29)   unsigned int maxidle, send_cnt, loop_cnt, loop, ui;
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c             30)   struct sockaddr_in addr;
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  31)   struct sockaddr_in6 addr6;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  32)   stBlinkenMovie *pMovie;
BlinkenLib/BlinkenSend.c  33) 
BlinkenLib/BlinkenSend.c  34)   // print info
BlinkenLib/BlinkenSend.c  35)   printf("BlinkenLib - BlinkenSend\n"
BlinkenLib/BlinkenSend.c  36)          "version %d.%d.%d\n"
BlinkenLib/BlinkenSend.c  37)          "config " BLINKENLIB_CONFIG "\n"
Stefan Schuermans update email address of author

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  38)          "Copyright 2004-2014 Stefan Schuermans <stefan@schuermans.info>\n"
Stefan Schuermans cleanup file headers after...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  39)          "Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html\n"
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  40)          "a blinkenarea.org project\n\n",
BlinkenLib/BlinkenSend.c  41)          BLINKENLIB_VERSION_MAJOR, BLINKENLIB_VERSION_MINOR,
BlinkenLib/BlinkenSend.c  42)          BLINKENLIB_VERSION_REVISION);
BlinkenLib/BlinkenSend.c  43) 
BlinkenLib/BlinkenSend.c  44)   // print syntax
BlinkenLib/BlinkenSend.c  45)   if (argCnt <= 1) {
Stefan Schuermans output proper list of file...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  46) #ifdef BLINKENLIB_CFG_MNG
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       47) #define MNGEXT ", *.mng"
Stefan Schuermans output proper list of file...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  48) #else
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       49) #define MNGEXT
Stefan Schuermans include gif in help of Blin...

Stefan Schuermans authored 7 years ago

BlinkenLib/BlinkenSend.c  50) #endif
BlinkenLib/BlinkenSend.c  51) #ifdef BLINKENLIB_CFG_GIF
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       52) #define GIFEXT ", *.gif"
Stefan Schuermans include gif in help of Blin...

Stefan Schuermans authored 7 years ago

BlinkenLib/BlinkenSend.c  53) #else
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       54) #define GIFEXT
Stefan Schuermans output proper list of file...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  55) #endif
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  56)     printf("syntax: %s <parameter> [...]\n\n"
BlinkenLib/BlinkenSend.c  57)            "parameters:\n"
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  58)            "  -4\n"
BlinkenLib/BlinkenSend.c  59)            "     use IPv4 (default for now, subject to change)\n"
BlinkenLib/BlinkenSend.c  60)            "  -6\n"
BlinkenLib/BlinkenSend.c  61)            "     use IPv6\n"
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  62)            "  -s [<ip>:]<port>\n"
BlinkenLib/BlinkenSend.c  63)            "     source address (defaults to 0.0.0.0:0)\n"
BlinkenLib/BlinkenSend.c  64)            "     must occur before -d and -i, may only occur once\n"
BlinkenLib/BlinkenSend.c  65)            "  -d <ip>[:<port>]\n"
BlinkenLib/BlinkenSend.c  66)            "     destination addess (defaults to 127.0.0.1:2323)\n"
BlinkenLib/BlinkenSend.c  67)            "  -p [BLP|EBLP|MCUF]\n"
BlinkenLib/BlinkenSend.c  68)            "     protocol to use (defaults to MCUF)\n"
BlinkenLib/BlinkenSend.c  69)            "  -t <milliseconds>\n"
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       70)            "     set maximum idle time between frames (defaults to 3000, use 0 "
tools/BlinkenSend.c       71)            "for infinite)\n"
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  72)            "  -n <number>\n"
BlinkenLib/BlinkenSend.c  73)            "     set number of times to send movies (defaults to 1)\n"
BlinkenLib/BlinkenSend.c  74)            "  -i <file>\n"
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c       75)            "     read movie from file (*.blm, *.bmm, *.bml, *.bbm" MNGEXT GIFEXT
tools/BlinkenSend.c       76)            ") and send it\n"
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  77)            "  -l <number>\n"
BlinkenLib/BlinkenSend.c  78)            "     loop number of times (defaults to 1, use 0 for forever)\n\n",
BlinkenLib/BlinkenSend.c  79)            args[0]);
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c             80)     return 0;
BlinkenSend.c             81)   }
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c             82) #ifdef WIN32
BlinkenSend.c             83)   {
BlinkenSend.c             84)     WSADATA WsaData;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  85)     WSAStartup(0x0101, &WsaData);
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c             86)   }
BlinkenSend.c             87) #endif
BlinkenSend.c             88) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  89)   // create UDP socket
BlinkenLib/BlinkenSend.c  90)   ipv6 = 0;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  91)   udpSocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
BlinkenLib/BlinkenSend.c  92)   if (udpSocket == INVALID_SOCKET) {
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c  93)     printf("cannot create IPv4 UDP socket\n");
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c             94) #ifdef WIN32
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  95)     WSACleanup();
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c             96) #endif
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c             97)     return -1;
BlinkenSend.c             98)   }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c  99)   // loop
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            100)   loop_cnt = 1;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 101)   for (loop = 0; loop < loop_cnt || loop_cnt == 0; loop++) {
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            102) 
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 103)     // print loop message
BlinkenLib/BlinkenSend.c 104)     if (loop_cnt > 1)
BlinkenLib/BlinkenSend.c 105)       printf("--- loop %u/%u ---\n", loop + 1, loop_cnt);
BlinkenLib/BlinkenSend.c 106)     if (loop_cnt == 0)
BlinkenLib/BlinkenSend.c 107)       printf("--- loop %u ---\n", loop + 1);
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            108) 
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 109)     // process parameters
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            110)     connected = 0;
BlinkenSend.c            111)     proto = BlinkenProtoMcuf;
Christian Heimke BlinkenLib v.0.5.4 (2008-01...

Christian Heimke authored 13 years ago

BlinkenSend.c            112)     maxidle = 3000;
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            113)     send_cnt = 1;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 114)     for (i = 1; i < argCnt; i++) {
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            115) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 116)       // IPv4
BlinkenLib/BlinkenSend.c 117)       if (strcmp(args[i], "-4") == 0) {
BlinkenLib/BlinkenSend.c 118)         if (ipv6) {
BlinkenLib/BlinkenSend.c 119)           // replace socket with new IPv4 UDP socket
BlinkenLib/BlinkenSend.c 120)           tmpSock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
BlinkenLib/BlinkenSend.c 121)           if (tmpSock != INVALID_SOCKET) {
BlinkenLib/BlinkenSend.c 122)             close(udpSocket);
BlinkenLib/BlinkenSend.c 123)             udpSocket = tmpSock;
BlinkenLib/BlinkenSend.c 124)             ipv6 = 0;
BlinkenLib/BlinkenSend.c 125)           } else {
BlinkenLib/BlinkenSend.c 126)             printf("cannot create IPv4 UDP socket\n");
BlinkenLib/BlinkenSend.c 127)           }
BlinkenLib/BlinkenSend.c 128)         }
BlinkenLib/BlinkenSend.c 129)       }
BlinkenLib/BlinkenSend.c 130)       // IPv6
BlinkenLib/BlinkenSend.c 131)       else if (strcmp(args[i], "-6") == 0) {
BlinkenLib/BlinkenSend.c 132)         if (!ipv6) {
BlinkenLib/BlinkenSend.c 133)           // replace socket with new IPv6 UDP socket
BlinkenLib/BlinkenSend.c 134)           tmpSock = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
BlinkenLib/BlinkenSend.c 135)           if (tmpSock != INVALID_SOCKET) {
BlinkenLib/BlinkenSend.c 136)             close(udpSocket);
BlinkenLib/BlinkenSend.c 137)             udpSocket = tmpSock;
BlinkenLib/BlinkenSend.c 138)             ipv6 = 1;
BlinkenLib/BlinkenSend.c 139)           } else {
BlinkenLib/BlinkenSend.c 140)             printf("cannot create IPv6 UDP socket\n");
BlinkenLib/BlinkenSend.c 141)           }
BlinkenLib/BlinkenSend.c 142)         }
BlinkenLib/BlinkenSend.c 143)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 144)       // source address
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 145)       else if (strcmp(args[i], "-s") == 0) {
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 146)         if (i + 1 < argCnt) {
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            147)           i++;
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 148)           if (!ipv6) {
BlinkenLib/BlinkenSend.c 149)             if (!txt2addr(args[i], &addr) ||
BlinkenLib/BlinkenSend.c 150)                 bind(udpSocket, (struct sockaddr *)&addr, sizeof(addr)) != 0)
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 151)               printf("could not set source address to \"%s\"\n", args[i]);
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 152)           } else {
BlinkenLib/BlinkenSend.c 153)             if (!txt2addr6(args[i], &addr6) ||
BlinkenLib/BlinkenSend.c 154)                 bind(udpSocket, (struct sockaddr *)&addr6, sizeof(addr6)) != 0)
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 155)               printf("could not set source address to \"%s\"\n", args[i]);
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 156)           }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 157)         } else
BlinkenLib/BlinkenSend.c 158)           printf("missing source address for \"-s\"\n");
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            159)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 160)       // destination address
BlinkenLib/BlinkenSend.c 161)       else if (strcmp(args[i], "-d") == 0) {
BlinkenLib/BlinkenSend.c 162)         if (i + 1 < argCnt) {
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            163)           i++;
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 164)           if (!ipv6) {
BlinkenLib/BlinkenSend.c 165)             if (!txt2addr(args[i], &addr) ||
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      166)                 connect(udpSocket, (struct sockaddr *)&addr, sizeof(addr)) != 0)
tools/BlinkenSend.c      167)               printf("could not set destination address to \"%s\"\n", args[i]);
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            168)             else
BlinkenSend.c            169)               connected = 1;
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 170)           } else {
BlinkenLib/BlinkenSend.c 171)             if (!txt2addr6(args[i], &addr6) ||
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      172)                 connect(udpSocket, (struct sockaddr *)&addr6, sizeof(addr6)) !=
tools/BlinkenSend.c      173)                     0)
tools/BlinkenSend.c      174)               printf("could not set destination address to \"%s\"\n", args[i]);
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            175)             else
BlinkenSend.c            176)               connected = 1;
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 177)           }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 178)         } else
BlinkenLib/BlinkenSend.c 179)           printf("missing destination address for \"-d\"\n");
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            180)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 181)       // protocol to use
BlinkenLib/BlinkenSend.c 182)       else if (strcmp(args[i], "-p") == 0) {
BlinkenLib/BlinkenSend.c 183)         if (i + 1 < argCnt) {
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            184)           i++;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 185)           if (strcasecmp(args[i], "BLP") == 0)
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            186)             proto = BlinkenProtoBlp;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 187)           else if (strcasecmp(args[i], "EBLP") == 0)
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            188)             proto = BlinkenProtoEblp;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 189)           else if (strcasecmp(args[i], "MCUF") == 0)
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            190)             proto = BlinkenProtoMcuf;
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            191)           else
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 192)             printf("unknown protocol \"%s\"\n", args[i]);
BlinkenLib/BlinkenSend.c 193)         } else
BlinkenLib/BlinkenSend.c 194)           printf("missing protocol for \"-p\"\n");
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            195)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 196)       // maximum idle time
BlinkenLib/BlinkenSend.c 197)       else if (strcmp(args[i], "-t") == 0) {
BlinkenLib/BlinkenSend.c 198)         if (i + 1 < argCnt) {
Christian Heimke BlinkenLib v.0.5.4 (2008-01...

Christian Heimke authored 13 years ago

BlinkenSend.c            199)           i++;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 200)           if (sscanf(args[i], "%u", &ui) == 1)
Christian Heimke BlinkenLib v.0.5.4 (2008-01...

Christian Heimke authored 13 years ago

BlinkenSend.c            201)             maxidle = ui;
BlinkenSend.c            202)           else
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 203)             printf("invalid maximum idle time value \"%s\"\n", args[i]);
BlinkenLib/BlinkenSend.c 204)         } else
BlinkenLib/BlinkenSend.c 205)           printf("missing maximum idle time value for \"-t\"\n");
Christian Heimke BlinkenLib v.0.5.4 (2008-01...

Christian Heimke authored 13 years ago

BlinkenSend.c            206)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 207)       // number of times to send movies
BlinkenLib/BlinkenSend.c 208)       else if (strcmp(args[i], "-n") == 0) {
BlinkenLib/BlinkenSend.c 209)         if (i + 1 < argCnt) {
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            210)           i++;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 211)           if (sscanf(args[i], "%u", &ui) == 1 && ui > 0)
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            212)             send_cnt = ui;
BlinkenSend.c            213)           else
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 214)             printf("invalid number \"%s\"\n", args[i]);
BlinkenLib/BlinkenSend.c 215)         } else
BlinkenLib/BlinkenSend.c 216)           printf("missing number for \"-n\"\n");
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            217)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 218)       // read movie and send it
BlinkenLib/BlinkenSend.c 219)       else if (strcmp(args[i], "-i") == 0) {
BlinkenLib/BlinkenSend.c 220)         if (i + 1 < argCnt) {
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            221)           i++;
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      222)           if (!connected) // try to connect if not yet connected
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            223)           {
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 224)             if (!ipv6) {
BlinkenLib/BlinkenSend.c 225)               printf("no destination address to sent movie \"%s\" to,\n"
BlinkenLib/BlinkenSend.c 226)                      "  using default destination address \"127.0.0.1:2323\"\n",
BlinkenLib/BlinkenSend.c 227)                      args[i]);
BlinkenLib/BlinkenSend.c 228)               if (!txt2addr("127.0.0.1:2323", &addr) ||
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      229)                   connect(udpSocket, (struct sockaddr *)&addr, sizeof(addr)) !=
tools/BlinkenSend.c      230)                       0)
tools/BlinkenSend.c      231)                 printf("could not set destination address to "
tools/BlinkenSend.c      232)                        "\"127.0.0.1:2323\"\n");
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

BlinkenLib/BlinkenSend.c 233)               else
BlinkenLib/BlinkenSend.c 234)                 connected = 1;
BlinkenLib/BlinkenSend.c 235)             } else {
BlinkenLib/BlinkenSend.c 236)               printf("no destination address to sent movie \"%s\" to,\n"
BlinkenLib/BlinkenSend.c 237)                      "  using default destination address \"[::1]:2323\"\n",
BlinkenLib/BlinkenSend.c 238)                      args[i]);
BlinkenLib/BlinkenSend.c 239)               if (!txt2addr6("[::1]:2323", &addr6) ||
BlinkenLib/BlinkenSend.c 240)                   connect(udpSocket, (struct sockaddr *)&addr6,
BlinkenLib/BlinkenSend.c 241)                           sizeof(addr6)) != 0)
BlinkenLib/BlinkenSend.c 242)                 printf("could not set destination address to \"[::1]:2323\"\n");
BlinkenLib/BlinkenSend.c 243)               else
BlinkenLib/BlinkenSend.c 244)                 connected = 1;
BlinkenLib/BlinkenSend.c 245)             }
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            246)           }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 247)           if (connected) {
BlinkenLib/BlinkenSend.c 248)             pMovie = BlinkenMovieLoad(args[i]);
BlinkenLib/BlinkenSend.c 249)             if (pMovie == NULL)
BlinkenLib/BlinkenSend.c 250)               printf("could not read movie \"%s\"\n", args[i]);
BlinkenLib/BlinkenSend.c 251)             else {
BlinkenLib/BlinkenSend.c 252)               printf("movie \"%s\" read\n", args[i]);
BlinkenLib/BlinkenSend.c 253)               for (ui = 0; ui < send_cnt; ui++) {
BlinkenLib/BlinkenSend.c 254)                 printf("sending movie \"%s\" (%u/%u)...\n", args[i], ui + 1,
BlinkenLib/BlinkenSend.c 255)                        send_cnt);
BlinkenLib/BlinkenSend.c 256)                 BlinkenMovieSend(pMovie, udpSocket, proto, maxidle);
BlinkenLib/BlinkenSend.c 257)                 printf("movie \"%s\" sent\n", args[i]);
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            258)               }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 259)               BlinkenMovieFree(pMovie);
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            260)             }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 261)           } else
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      262)             printf("no destination address to sent movie \"%s\" to\n", args[i]);
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 263)         } else
BlinkenLib/BlinkenSend.c 264)           printf("missing input filename for \"-i\"\n");
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            265)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 266)       // number of times to loop
BlinkenLib/BlinkenSend.c 267)       else if (strcmp(args[i], "-l") == 0) {
BlinkenLib/BlinkenSend.c 268)         if (i + 1 < argCnt) {
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            269)           i++;
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 270)           if (sscanf(args[i], "%u", &ui) == 1)
Christian Heimke BlinkenLib v.0.4.1 (2005-12...

Christian Heimke authored 13 years ago

BlinkenSend.c            271)             loop_cnt = ui;
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            272)           else
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 273)             printf("invalid number \"%s\"\n", args[i]);
BlinkenLib/BlinkenSend.c 274)         } else
BlinkenLib/BlinkenSend.c 275)           printf("missing number for \"-l\"\n");
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            276)       }
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 277)       // unknown parameter
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            278)       else
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      279)         printf(
tools/BlinkenSend.c      280)             "unknown parameter \"%s\", call without parameters to get help\n",
tools/BlinkenSend.c      281)             args[i]);
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            282) 
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      283)     } // for( i ...
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            284) 
Stefan Schuermans format

Stefan Schuermans authored 1 year ago

tools/BlinkenSend.c      285)   }   // for( loop ...
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            286) 
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 287)   // close socket
BlinkenLib/BlinkenSend.c 288)   close(udpSocket);
Christian Heimke BlinkenLib v.0.4 (2005-07-02)

Christian Heimke authored 13 years ago

BlinkenSend.c            289) 
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c            290) #ifdef WIN32
Stefan Schuermans changed indenting to be mor...

Stefan Schuermans authored 13 years ago

BlinkenLib/BlinkenSend.c 291)   WSACleanup();
Christian Heimke BlinkenLib v.0.5.2 (2006-05...

Christian Heimke authored 13 years ago

BlinkenSend.c            292) #endif