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't start. <br>
Console Message:<br>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" } <br><br>
These are the changes I made:<br><b>main.cpp</b><br><br>extern "C" int splitPort = false, recvPort = 0; <br>extern "C" int ignoreNoDevice = false, noDeviceFound = false; <br>extern "C" int forwarding = false; <br>
extern "C" int recsockd = -1, recsockc=-1; <br>extern "C" int vicssock = -1, vicrsock=-1; <br><br><br>case 'p': // July 18, 2009<br> splitPort = true; // July 24, 2009<br>
break; // July 18, 2009<br>case 'W': // 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,'x');<br> dimX = (int)strtoul(optarg,NULL,10);<br> char* temp = ++plusPointer;<br> plusPointer = strchr(temp,'+');<br>
dimY = (int)strtoul(temp,NULL,10);<br> temp = ++plusPointer;<br> plusPointer = strchr(temp,'+');<br> winX = (int)strtoul(temp,NULL,10);<br> winY = (int)strtoul(++plusPointer,NULL,10);<br>
<br> tcl.add_option("vicdisplayCH", 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)) && forwarding) { <br> if(vicssock < 0) { <br>
vicssock = ssock_; <br> vicrsock = rsock_; <br> loopback_ = "127.0.0.1"; <br> recsockd = openssock(loopback_,htons(ntohs(port)+2),1); <br>
if(recsockd < 0)forwarding = 0; <br> } else { <br> loopback_ = "127.0.0.1"; <br> recsockc = openssock(loopback_,htons(ntohs(port)+2),1); <br>
if(recsockc < 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><hostAddress>127.0.0.1</hostAddress><br> <receiveDataPort>62016</receiveDataPort><br>
<sendDataPort>62018</sendDataPort><br> <launchCommand>vic</launchCommand><br><br><launchParameters>-p <a href="http://127.0.0.1/62016">127.0.0.1/62016</a></launchParameters><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"><<a href="mailto:douglask@itee.uq.edu.au">douglask@itee.uq.edu.au</a>></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'Hanlon wrote:<br>
<br>
> You don't need to alter the sending/receiving ports to allow one to<br>
> only receive - if you're using multicast you can send and not<br>
> receive by setting the vic attribute (which can be set in ~/.vic.tcl<br>
> file or more permanently in tcl/ui-resources.tcl) "noMulticastBind".<br>
<br>
</div>A third option is to use "-X noMulticastBind=true" as one of vic's<br>
commandline switches.<br>
<br>
<br>
Cheers,<br>
Doug<br>
<br>
</blockquote></div><br>