Re: [nodejs] Re: Same codes, different results in REPL and shell environments about UDP socket

2014-06-26 Thread mailto1587
I got it! Thank you very much! --  mailto1587 Sent with Airmail 开启 2014年6月24日 at 下午5:06:02, mscdex (msc...@gmail.com) 写: On Monday, June 23, 2014 6:49:35 PM UTC-4, Xiadong Zhu wrote: An abnormal issue, help please! It's most likely a timing issue. The non-REPL code is running within the same

[nodejs] Re: Same codes, different results in REPL and shell environments about UDP socket

2014-06-24 Thread mscdex
On Monday, June 23, 2014 6:49:35 PM UTC-4, Xiadong Zhu wrote: > > > An abnormal issue, help please! > > It's most likely a timing issue. The non-REPL code is running within the same tick, so the socket isn't actually bound until some time later, but you try and use a method (setBroadcast) that ex