码迷,mamicode.com
首页 >  
搜索关键字:socket limit    ( 47705个结果
32设计模式之单例
单例的7种设计思路 1:饿汉式:final类不允许被继承,static实例能利用jvm的<clinit>确保同步,缺点就是无法保证被ClassLoader加载的singleton04在什么时候使用, 这就意味着singleton04实例所开辟的堆内存空间会驻留更久的时间,这种情况对轻资源的类来说影响 ...
分类:其他好文   时间:2020-08-17 16:42:17    阅读次数:61
三、redis进阶
阅读文档 1.管道 yum install nc 安装netcat 建立socket连接 管道,直接给redis发值 nc localhost 6379 set k1 test (ctrl+c结束)然后在客户端查询 2.发布订阅:help @pubsub 监听之后才能接收到 redis-cli : ...
分类:其他好文   时间:2020-08-10 22:10:33    阅读次数:84
CodeForces 1327F AND Segments
题意 给三个整数 \(n,k,m\) 和 \(m\) 个限制 \((l_i,r_i,x_i)\),求有多少个长度为 \(n\) 的序列 \(a\) 满足: 对于 $1\leq i\leq n$ 有 $0\leq a_i<2^k$ 对于 $1\leq i\leq m$ 有 \(a_{l_i} \ope ...
分类:其他好文   时间:2020-08-10 14:31:19    阅读次数:64
C. Uncle Bogdan and Country Happiness solution
C. Uncle Bogdan and Country Happiness time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Un ...
分类:移动开发   时间:2020-08-06 17:04:18    阅读次数:99
MySQL实现根据当前ID读取上一条和下一条记录
当前ID为5,读取上一条记录: SELECT * FROM A WHERE ID < 5 ORDER BY ID DESC LIMIT 0,1; ps: select * from table1 where id<$id order by id desc limit 1 当前ID为5,读取下一条记录 ...
分类:数据库   时间:2020-08-03 23:34:06    阅读次数:134
2020-08-02 Linux 8开始学习(第八课)
磁盘配额:限制用户使用空间vim /etc/fstabdefaults,uquota inode blockisoft bsoft软限制(文件个数)ihard bhard硬 xfs_quota(配置磁盘配额) -x(专家模式) -c(非交互式 )'limit bsoft=3m bhard=6m is ...
分类:系统相关   时间:2020-08-03 00:48:11    阅读次数:91
Socket编程的基本函数
基本的套接字编程 socket函数 想要执行网络I/O,首先需要调用socket函数创建套接字,需要头文件#include <sys/socket.h> int socket (int domain, int type, int protocol); 参数: domain : 执行协议域,取值如下: ...
分类:其他好文   时间:2020-08-03 00:47:48    阅读次数:82
python socket 模拟http请求
# coding: utf-8 import socket from urllib.parse import urlparse def get_url(url): url = urlparse(url) host = url.netloc path = url.path if path == "": ...
分类:编程语言   时间:2020-08-02 16:13:18    阅读次数:115
linger
某些具体程序要求待未发送完的数据发送出去后再关闭socket,可通过设置让程序满足要求: struct linger { u_short l_onoff; u_short l_linger; }; struct linger m_sLinger; m_sLinger.l_onoff = 1; //在 ...
分类:其他好文   时间:2020-08-02 12:49:38    阅读次数:84
47705条   上一页 1 ... 35 36 37 38 39 ... 4771 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!