[Sumover-dev] Reg: Help with vic

Akhila akhila844 at gmail.com
Fri Jul 24 21:48:51 BST 2009


Hello

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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oakham.cs.ucl.ac.uk/pipermail/sumover-dev/attachments/20090724/0fdaee50/attachment.html


More information about the Sumover-dev mailing list