首页 “socket”

python实现简单的C/S系统

server端代码: #!/usr/bin/python import time,os, socket,sys,ConfigParser,threading msgContainer = {}; # message container list clientThreads = {}; def loadConf(): cnfPsr = ConfigParser.Conf

利用nodejs, socket.io实现双屏互动

点击链接进行双屏互动体验 服务端: var Server = require('socket.io'), io = new Server(9090); var globals = { totalCount: 0, links: 0 }; //添加连接监听 io.on('connection', function(socket