node和php相通(利用socket中的tcp协议)
nodejs代码var http = require('http');
http.createServer(function (req, res) {
// res.writeHead(200, {'Content-Type': 'text/plain'});
// res.end('Hello World\n');
if( req.url !=''){
var net = re
原创
2015-07-19 10:22:58 ·
369 阅读 ·
0 评论