题外话: 最近看node,发现node中好多强大的功能都设计到C,为了加深对node的理解,开始简单的学习一下C语法
ispunct: 统计string对象中标点符号的个数
#include <iostream>
using namespace std;
int main ()
{string s ("Hello World!");decltype(s.size()) p…
git
node.js创建websocket 的服务
Nodejs Websocket包 ws.createServer([options], [callback]) The callback is a function which is automatically added to the “connection” event. 前端代码
1. 创建实例、打开连接
this.websocket new WebSocket(ws://127.0.0.1:80…