<div>Michael Greenly:<br>
> Just for curiosity's sake what closed source commercial applications do you<br>
> use? I've tried a few things but never found anything compelling?<br>
><br></div><div>Windows and Microsoft compilers. Using that software is</div><div>mostly a pain, but from time to time they do something well.</div><div> </div><div>I've not used Totalview recently, but it enjoys a good</div>
<div>reputation among the debuggers available on LInux.</div><div><br><br>
> I always seem to fall back to Vim and command line tools.</div><div> </div><div>Me too. Originally with what I'm working on -- an on line</div><div>code generator -- I had a web interface. Twelve or so </div><div>
years ago that seemed to make sense, but eventually</div><div>someone suggested a command line interface and I realized</div><div>that was a better idea than a web interface. Developing the</div><div>command line interface over the past few years has been a </div>
<div>great experience.</div><div><a href="http://webEbenezer.net/build_integration.html">http://webEbenezer.net/build_integration.html</a> .</div><div> </div><div> </div><div><a href="https://groups.google.com/forum/?fromgroups#!searchin/comp.lang.c$2B$2B/investment$20review$20brian%7Csort:date/comp.lang.c++/YiW387bQSds/76r-x7saSeYJ">https://groups.google.com/forum/?fromgroups#!searchin/comp.lang.c$2B$2B/investment$20review$20brian%7Csort:date/comp.lang.c++/YiW387bQSds/76r-x7saSeYJ</a></div>
<div> </div><div>--------------------------------------------------------------------</div><div> </div><div>Should start another thread but am lazy...</div><div><br>sock_type cmw::udp_server (uint32_t port)<br>{<br> sock_type sd = getSocket(SOCK_DGRAM);<br>
sockaddr_in si_me;<br> si_me.sin_family = AF_INET;<br> si_me.sin_port = htons(port);<br> si_me.sin_addr.s_addr = htonl(INADDR_ANY);<br> ::std::memset(&si_me.sin_zero, 0, sizeof(si_me.sin_zero));<br> if (::bind(sd, (sockaddr*) &si_me, sizeof(si_me))==-1) {<br>
throw failure("udp Bind errno: ") << GetError();<br> }<br> return sd;<br>}</div><div> </div><div>Is the memset needed? Stevens says sin_zero is not used. </div><div>Others on the newsgroups say clearing the field is needed </div>
<div>on a few platforms. I've left the memset in just to be on the </div><div>safe side.<br></div><div> </div><div>-- <br>Brian Wood<br>Ebenezer Enterprises<br><a href="http://webEbenezer.net" target="_blank">http://webEbenezer.net</a><br>
<br><br></div>