Quantcast
Channel: C++博客-所有随笔
Viewing all articles
Browse latest Browse all 7882

nodejs socket is connect

$
0
0
You can check socket is connect by net.socket._handle like this code:

var obj = new net.socket;            
if (!obj._handle)
{
    obj.connect(8080, '127.0.0.1', function() {
    send;
    });
}
else
{
    send;
}


胡满超 2014-05-13 16:11 发表评论

Viewing all articles
Browse latest Browse all 7882

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>