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