码迷,mamicode.com
首页 >  
搜索关键字:soc    ( 2655个结果
socket中 emit和on的写法
socket.emit('action');表示发送了一个action命令,命令是字符串的,在另一端接收时,可以这么写: socket.on('action',function(){...});socket.emit('action',data);表示发送了一个action命令,还有data数据,在 ...
分类:其他好文   时间:2017-06-02 18:54:15    阅读次数:287
httpd: Could not reliably determine the server's fully qualified domain name
[root@luozhonghua sbin]# service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua httpd: Could not reliably determine ...
分类:Web程序   时间:2017-06-02 12:38:08    阅读次数:148
linux 源码安装mysql 5.5
今天在ubuntu和CentOS下,用源码反复安装了许多次mysql,趁还没忘记,赶紧记下来。。。 在ubuntu和CentOS下安装过程倒是没什么差别。 0.下载源码,传到服务器上 1.准备cmake和libncurse ubuntu 下用 apt-get install cmake 和apt-g ...
分类:数据库   时间:2017-06-01 23:37:06    阅读次数:238
Mongodb启动命令mongod参数说明
mongod的主要参数有: 基本配置 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- * Replicaton 参数 * 主/从参数 * Replica set(副本集)选项: * ...
分类:数据库   时间:2017-06-01 23:35:14    阅读次数:341
socket.io带中文时客户端无法响应
记录坑了自己1个多小时的问题。 情况是: 服务端代码: 前端代码: socket.on('updatePositionInfo', function (data) { console.log(data); console.log 结果:上面是正常结果,如果将username 的值换成中文: var ...
分类:其他好文   时间:2017-06-01 13:07:42    阅读次数:175
Java实现Socket通信
一对一通信: 服务器端: ...
分类:编程语言   时间:2017-06-01 12:03:02    阅读次数:181
python问题:TypeError: a bytes-like object is required, not 'str'
源程序: client.send("GET / HTTP/1.1\r\nHost: baidu.com\r\n\r\n") 错误背景:程序想创建一个TCP连接,在发送数据的时候报错,表明send函数需要传byte类型值。 类型错误:TypeError: a bytes-like object is ...
分类:编程语言   时间:2017-05-31 23:10:43    阅读次数:344
详解 Python3 正则表达式(二)
上一篇:详解 Python3 正则表达式(一) 本文翻译自:https://docs.python.org/3.4/howto/regex.html 博主对此做了一些批注和修改 ^_^ 使用正则表达式 现在我们开始来写一些简单的正则表达式吧。Python 通过 re 模块为正则表达式引擎提供一个接口 ...
分类:编程语言   时间:2017-05-29 23:27:33    阅读次数:277
使用基本的socket函数
1.socket库的2.2版本的文件: dll文件:ws2_32.dll lib文件:ws2_32.lib 头文件:<WINSOCK2.H> 2.socket库的初始化和卸载 2.1-初始化socket库 int WSAStartup ( WORD wVersionRequested, //请求使用 ...
分类:其他好文   时间:2017-05-29 23:26:39    阅读次数:194
[USACO08JAN]手机网络Cell Phone Network
[USACO08JAN]手机网络Cell Phone Network 题目描述 Farmer John has decided to give each of his cows a cell phone in hopes to encourage their social interaction. ...
分类:移动开发   时间:2017-05-29 10:57:28    阅读次数:306
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!