ICode9

精准搜索请尝试: 精确搜索
  • Asp.Net Core Grpc使用C#对象取代Proto定义2020-02-04 19:01:35

    Asp.Net Core 3.0之后,对Grpc提供了高集成度的支持,对于需要连续传输大批量对象数据的应用场景而言,等于多了一条高铁线路。如果没有Grpc,连续传输大批量对象数据是一个很纠结的问题。用TCP的话,可以达到最高速度,但是传输过程的断线续传,对象数据的序列化和反序列化都要自己处理,开发效率

  • 华为交换机和华为交换机之间能ping通2020-02-01 15:43:54

    sw-1配置: <Huawei>sy  进系统视图 (默认在用户视图) [Huawei]sysname SW-1  修改主机名为SW-1 [SW-1]interface Vlanif 1   进vlan 1接口 [SW-1-Vlanif1]ip address 192.168.1.100 24 配置ip地址和子网掩码 SW-2配置: <Huawei>sy  进系统视图 (默认在用户视图) [Huawei]sy

  • ipcMain 报错 event.reply is not a function2020-01-09 23:01:34

    开发 electron-vue 中,关于 event.reply is not a function 出现问题。 当主进程向渲染页面通信的时候,如下代码 const { ipcMain } = require('electron'); ipcMain.on('asynchronous-message', (event, arg) => { console.log('asynchronous-message', event.reply,

  • C++ 判断IP是否可以ping通2019-12-25 11:05:02

    以下是判断IP是可以可以ping通的接口及依赖的头文件和库。 1 // 需要的头文件 2 #include <Winsock2.h> 3 #include "iphlpapi.h" 4 5 #pragma comment(lib,"Iphlpapi.lib") 6 #pragma comment(lib,"Ws2_32.lib") 7 8 // 接口功能:判断IP地址是否能ping通 9 // 参数:IP

  • gx_dlms 的杂乱记录2019-12-05 20:00:40

    DLMS_ERROR_CODE_FALSE W3Jehpnc543MuwUz6ZWDshy5kwbbE9Cw CGXDLMSClient::GetData(CGXByteBuffer& reply, CGXReplyData& data) CGXDLMS::GetData(m_Settings, reply, data, NULL) // hdlc路线,这里的reply 是原始接受的数据,data 要返回的CGXReplyData

  • RabbitMQ异常注意 reply-code=404, reply-text=NOT_FOUND - no exchange 'topic' in vhost '/&2019-12-04 20:55:20

    第一次,一定要先启动Provider再启动Consumer!!! rabbitmq为初始状态没有队列信息,然后我又没有启动consumer,所以导致provider找不到queue和exchange。 导致 (reply-code=404, reply-text=NOT_FOUND - no exchange 'topic002' in vhost '/', class-id=50, method-id= 解决办法:先启动cons

  • 抓包分析(ARP)2019-11-24 17:00:35

    Request:    Reply:   

  • 抓包分析(ARP)2019-11-24 13:04:27

        4    Reply:   

  • 抓包分析(ARP)2019-11-22 13:01:17

     Request:    Reply:     

  • python3-flask-2.1将接口route分布到不同的文件-blueprints2019-11-12 16:03:36

    随着项目扩增,接口越来越多,持续写在同一个文件中,代码的维护将越来越复杂。 使用(Blueprint)将接口的route函授分布到不同的文件中,减少代码行数。 准备两个接口路径 (query / reply) @app_test.route('/query/') def query(): return 'query' @app_test.route('/reply/') d

  • rabbitMq @RabbitListener不自动生成队列2019-10-17 18:03:25

    com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'RETAILSTORE.TOPIC.ALIPAYNOTIFYTOPIC' in vhost '/', class-id=50, method-id=10) or

  • redis实践 —— redisReply简析2019-10-06 16:52:27

    redisReply 定义如下: /* This is the reply object returned by redisCommand() */typedef struct redisReply { int type; /* 返回值类型 */ long long integer; /* 当返回类型为 REDIS_REPLY_INTEGER 时 */ size_t len; /* 返回的字符串长度 */ char *str; /* 当返

  • Linux命令: read的使用2019-09-11 15:37:43

    read read命令从键盘读取变量的值,通常用在shell脚本中与用户进行交互的场合。该命令可以一次读取多个变量的值,变量和输入的值都需要使用空格隔开。在read命令后面,如果没有指定变量名,读取的数据将被自动赋值给特定的变量REPLY 语法 read: 用法:read [-ers] [-a 数组] [-d

  • hiredis使用案例-同步、Pipelining、异步2019-09-05 17:01:34

    1、同步调用: #include <stdio.h> #include "hiredis/hiredis.h" int main() { redisContext *c = redisConnect("127.0.0.1", 6379); if (c == NULL) { printf("Can't allocate redis context\n"); return 1;

  • .NET FTP上传文件2019-08-05 12:03:49

    //帮助类 FTPHelpernamespace Common.FTP{ /// <summary> /// FTP的相关操作 /// </summary> public class FTPHelper { //static readonly log4net.ILog log = log4net.LogManager.GetLogger("log4net"); private string remoteHost, remotePath, remoteUser

  • FTP文件上传下载2019-07-26 14:51:21

    /** * 从FTP下载文件 */ public static boolean downFileFroFTP(String url, int port, String username, String password, String remotePath, String fileName, String localPath) { FTPClient ftpClient = new FTPClient();

  • C#继承2019-07-11 13:04:32

    //C#继承 //继承类 using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp3 { public class Father { int x = 1; public virtual void Reply() { Console.WriteLine(“father reply”); } public virtual void Test() { Console.Write

  • Redis执行lua脚本,key不存在的返回值2019-06-28 21:02:02

    Redis执行lua脚本,如果key不存在,则对应返回值为 false(boolean) local val = redis.call('get', KEYS[1])print(val)   Redis 到 Lua 的转换表。 Redis integer reply -> Lua number / Redis 整数转换成 Lua 数字 Redis bulk reply -> Lua string / Redis bulk 回复转换成 Lua

  • redis源码分析之networking.c2019-06-24 10:47:53

    #include "server.h" #include "atomicvar.h" #include <sys/uio.h> #include <math.h> #include <ctype.h> static void setProtocolError(const char *errstr, client *c, int pos); /* Return the size consumed from the allocat

  • Redis hiRedis linux安装与demo示例2019-06-14 10:00:53

    Redis1. wget http://download.redis.io/releases/redis-4.0.8.tar.gz2. tar xzvf redis-4.0.8.tar.gz3. cd redis-4.0.8  make  cd src  make install #PREFIX=/usr/local/redis  export LD_LIBRARY_PATH=/usr/local/lib #or modify bash_profile4.cd ../  mkdir /usr/l

  • 2019春季学期第十周作业2019-05-03 20:48:04

    一、作业头内容 这个作业属于那个课程 C语言程序设计II 这个作业要求在哪里 https://edu.cnblogs.com/campus/zswxy/computer-scienceclass1-2018/homework/3166 我在这个课程的目标是 假期总结 这个作业在那个具体方面帮助我实现目标 自我分析 参考文献 以下博客

  • 第十周作业2019-05-02 19:48:08

    一、刘未鹏的博客:怎样花两年时间面试一个人 http://mindhacks.cn/2011/11/04/how-to-interview-a-person-for-two-years/ 请回答以下两个问题: 1.这篇博客下面的评论中,请列出你最感到有共鸣的三条(不限于三条)。 (1) 蒙面超人23 | July 26, 2013 at 1:23 pm | Reply 书到用时方恨少,蜡炬

  • Binder Native 层(二)2019-04-12 18:40:52

    Binder 框架及 Native 层 Binder机制使本地对象可以像操作当前对象一样调用远程对象,可以使不同的进程间互相通信。Binder 使用 Client/Server 架构,客户端通过服务端代理,经过 Binder 驱动与服务端交互。 Binder 机制实现进程间通信的奥秘在于 kernel 中的 Binder 驱动。 JNI 的代码

  • Deep Learning for Computer Vision with Python.2019-03-27 22:50:02

    Welcome back! This is the fourth post in the deep learning development environment configuration series which accompany my new book, Deep Learning for Computer Vision with Python. Today, we will configure Ubuntu + NVIDIA GPU + CUDA with everything you nee

  • linux网络诊断命令工具2019-03-05 20:03:08

    1、ping命令 测试网络编辑 ping就是对一个网址发送测试数据包,看对方网址是否有响应并统计响应时间,以此测试网络。 windows具体方式是,开始–运行–cmd,在调出的dos窗口下输入 ping 空格 + 你要ping的网址,回车。 比如 “ pingXXX网址” 之后屏幕会显示类似信息: Ping XXX 网址[61.1

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有