![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
通信
文章平均质量分 65
qiangshou001
这个作者很懒,什么都没留下…
展开
-
IP地址转换:int转string
实际编程中,IP地址多用整型来表示,如int、unsigned int等。整型对于机器是友好的,对于编码人员就不那么友好了,毕竟我们还是喜欢用点分格式的IP地址,下面就写了个简单的小方法,供参考、使用;#include "stdafx.h"#include <iostream>#include <string>#include <sstream>usi...原创 2018-03-10 10:35:46 · 2710 阅读 · 0 评论 -
KADEMLIA算法学习
系统讲述了ETH的P2P网络模型---Kademlia算法,推荐https://shuwoom.com/?p=813以图书查询的例子,讲述KAD算法,通俗易懂:https://www.jianshu.com/p/f2c31e632f1d以工程实现角度,完整描述了KAD的原理,及调参、增删过程:https://zhuanlan.zhihu.com/p/40286711...原创 2019-05-16 09:53:20 · 360 阅读 · 0 评论 -
暴露虚拟机下的ip,port
windows下admin起cmd,输入命令:netsh interface portproxy add v4tov4 listenport=6615 listenaddress=10.168.1.235 connectport=6615 connectaddress=192.168.187.144原创 2019-03-22 14:25:27 · 269 阅读 · 0 评论 -
prometheus + node exporter 安装教程
参考https://www.ibm.com/developerworks/cn/cloud/library/cl-lo-prometheus-getting-started-and-practice/index.html1.下载安装 node exporter下载最新的node exporter安装包:curl -OL https://github.com/prometheus/no...原创 2019-03-04 10:43:59 · 2562 阅读 · 0 评论 -
IP定位系统
官网:https://geo.ipify.org/注册后,生成public key;地址栏输入URL:https://geo.ipify.org/api/v1?apiKey=$pubkey&ipAddress=123.125.115.110ip是百度的服务地址; 查询结果:...原创 2019-01-29 14:42:10 · 2602 阅读 · 0 评论 -
linux 获取公网IP
两条命令都可用:1)host myip.opendns.com resolver1.opendns.com 2) dig +short myip.opendns.com @resolver1.opendns.com 参考https://www.cyberciti.biz/faq/how-to-find-my-public-ip-a...原创 2019-01-29 14:38:20 · 696 阅读 · 0 评论 -
ubuntu 16.04 虚拟机中 git pull 出错 sign_and_send_pubkey: signing failed: agent refused operation
osboxes@ubuntu:~/user$ git pullsign_and_send_pubkey: signing failed: agent refused operationPermission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the...原创 2018-09-21 09:16:49 · 336 阅读 · 0 评论 -
ubuntu 16.04 安装 docker教程
1.下载安装 VMware Workstation;2.VMware Workstation中创建ubuntu虚拟机,版本 16.04,下载地址https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/16.04/ubuntu-16.04.5-desktop-amd64.iso3.在安装好的ubuntu虚拟机中按照如下帖子中的方法,傻瓜式操作...原创 2018-09-19 10:39:39 · 214 阅读 · 0 评论 -
MAC地址转换:64位整型转string
实际编程中,MAC地址多用整型来表示,如unsigned long long等。整型对于机器是友好的,对于编码人员就不那么友好了,毕竟我们还是喜欢用string类型的MAC地址,如“00-00-00-00-00-00”,下面就写了个简单的小方法,供参考、使用;#include "stdafx.h"#include <iostream>#include <string>...原创 2018-03-10 10:40:45 · 4124 阅读 · 0 评论 -
十分钟理解TCP/IP
发现一片关于TCP/IP的文章,通俗易懂,简明扼要,特推荐共享之关于 TCP/IP,必知必会的10个问题https://zhuanlan.zhihu.com/p/72587882转载 2019-07-08 10:10:52 · 307 阅读 · 0 评论