[Sumover-dev] Reg: Help with vic

Douglas Kosovic douglask at itee.uq.edu.au
Mon Jul 27 13:42:34 BST 2009


Hi Akhila,

If you want to set vic's geometry you can use a Tk geometry string with 
something like:

vic -X geometry=1000x500+300-400 234.5.6.7/16000

i.e. 1000 pixels wide by 500 pixels tall, with the left edge 300 pixels 
from the left of the screen, and the bottom edge 400 pixels up from the 
base of the screen.

Set the number of tiled columns to 2 with "-X tile=2", etc.

It's easier to understand what you modified by seeing the output of 
issuing the following on the command-line in vic's folder:
  svn diff


Doug

> I made a few changes in vic and am getting this error.
> 
> *Error:*
> vic: getaddrinfo: Akhila-Padigi-macbook.local: Bad hints
> vic: getaddrinfo: Akhila-padigi-macbook.local: Bad hints
> 
> But I am still able to run vic normally. When I use it in my program, it
> doesn't start.
> Console Message:
> 7/24/09 4:35:27 PM [0x0-0xd50d5].org.nclark1.NetworkEducationWare[8614] OSX
> Capture:  ==> size {large small cif} format {420 422 cif} type {ntsc pal
> secam} port {"Built-in iSight" }
> 
> These are the changes I made:
> *main.cpp*
> 
> extern "C" int splitPort = false, recvPort = 0;
> extern "C" int ignoreNoDevice = false, noDeviceFound = false;
> extern "C" int forwarding = false;
> extern "C" int recsockd = -1, recsockc=-1;
> extern "C" int vicssock = -1, vicrsock=-1;
> 
> 
> case 'p':   // July 18, 2009
>             splitPort = true; //   July 24, 2009
>              break;  // July 18, 2009
> case 'W': // by  3-26-04 for window position setting; format  //   July 24,
> 2009
>                   // x+y gives upper left corner of window in pixels
>             {
> 
>             /* 1-31-06 Following Code is used for splitting the input string
> into
>                    dimX, dimY winX and winY to set dimensions and
> co-ordinated of the vic window. */
> 
> 
> 
>                 char* plusPointer = strchr(optarg,'x');
>                 dimX = (int)strtoul(optarg,NULL,10);
>                 char* temp = ++plusPointer;
>                    plusPointer = strchr(temp,'+');
>                 dimY = (int)strtoul(temp,NULL,10);
>                 temp = ++plusPointer;
>                 plusPointer = strchr(temp,'+');
>                 winX = (int)strtoul(temp,NULL,10);
>                 winY = (int)strtoul(++plusPointer,NULL,10);
> 
>                 tcl.add_option("vicdisplayCH", optarg);
> 
>                 //This command is used for passing the values to
> ui-main.tcl.
> 
>             }  //   July 24, 2009
>             break;
> 
> *net-ip.cpp Line 274*
> 
> // if multicasting, make a socket to send copies of all
> // traffic to the   Master Client for the recorder
> if(forwarding++)
> {unsigned long sendAddr = inet_addr(host);
>   if(sendAddr == htonl(INADDR_NONE))forwarding = 0;
>   else if(IN_MULTICAST(ntohl(sendAddr)) && forwarding) {
>       if(vicssock < 0) {
>         vicssock = ssock_;
>         vicrsock = rsock_;
>         loopback_ = "127.0.0.1";
>         recsockd = openssock(loopback_,htons(ntohs(port)+2),1);
>         if(recsockd < 0)forwarding = 0;
>       } else {
>         loopback_ = "127.0.0.1";
>         recsockc = openssock(loopback_,htons(ntohs(port)+2),1);
>         if(recsockc < 0)forwarding = 0;
>       }
>   }
>   else forwarding = 0;
> }
> 
> And very few other changes.
> 
> These are the parameters I am passing in XML file.
> 
> <hostAddress>127.0.0.1</hostAddress>
>     <receiveDataPort>62016</receiveDataPort>
>     <sendDataPort>62018</sendDataPort>
>     <launchCommand>vic</launchCommand>
> 
> <launchParameters>-p  127.0.0.1/62016</launchParameters>
> 
> Can you guide me where I am going wrong.
> 
> Thanks. Please do let me know if you need more information.
> 
> Akhila
> 
> 
> 
> On Wed, Jul 22, 2009 at 3:12 AM, Douglas Kosovic <douglask at itee.uq.edu.au>wrote:
> 
>> Piers O'Hanlon wrote:
>>
>>> You don't need to alter the sending/receiving ports to allow one to
>>> only receive - if you're using multicast you can send and not
>>> receive by setting the vic attribute (which can be set in ~/.vic.tcl
>>> file or more permanently in tcl/ui-resources.tcl) "noMulticastBind".
>> A third option is to use "-X noMulticastBind=true" as one of vic's
>> commandline switches.
>>
>>
>> Cheers,
>> Doug
>>
>>
> 




More information about the Sumover-dev mailing list