自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (17)
  • 收藏
  • 关注

原创 socket C/C++编程(11)windows client端使用ip,port,通过connect()连接上linux server

1. windows client 端代码 (test.cpp)#include <windows.h>#include <stdio.h>int main(int argc, char *argv[]){ // 初始化”ws2_32.lib” WSADATA ws; WSAStartup(MAKEWORD(2,2), &ws); // 创建client端的SOCKET

2017-08-22 15:17:23 1710

原创 socket C/C++编程(10)linux server端面向对象化处理

1. 面向过程的源代码如下,#include <stdio.h>#include <string.h>#include <thread>#ifdef WIN32 #include <windows.h> #define socklen_t int#else #include <sys/types.h> #include <sys/socket.h> #i

2017-08-21 10:59:40 319

原创 socket C/C++编程(9)windows server端面向对象化处理

1. 面向过程的源代码如下,#include <stdio.h>#include <string.h>#include <thread>#ifdef WIN32 #include <windows.h> #define socklen_t int#else #include <sys/types.h> #include <sys/socket.h> #i

2017-08-19 11:17:55 398

原创 socket C/C++编程(8)server端多线程处理clients队列

1. 采用C++11的标准线程库(linux之pthread为例)实现多线程(test.cpp)#include <stdio.h>#include <string.h>#ifdef WIN32 #include <windows.h>#else #include <sys/types.h> #include <sys/socket.h> #include <un

2017-08-17 14:33:39 2249 1

原创 socket C/C++编程(7)server端读取client端键入的数据

1. 服务器读取一次客户端编辑发送的数据#ifdef WIN32 #include <windows.h>#else #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <stdlib.h> #include <arpa/inet.h>#endif

2017-08-16 09:46:20 2161

原创 socket C/C++编程(6)server之accept()函数创建新socket以单独读取缓存区某个client的连接信息(客户端的IP和端口,但是,不包括client端键入的数据)

1. 首先 第一类服务器socket是用于绑定某个服务器端口,第二类服务器socket用于绑定交互(读写)某个listen()缓冲区的client。2. 代码 accept()函数创建新socket以单独读取缓存区某个client的连接信息(IP和端口,不包括客户端编辑发送的数据)。第二类读取某个client交互信息的socket不关闭的代码如下,#ifdef WIN32 #includ

2017-08-15 17:01:00 1821 1

原创 socket C/C++编程(5)服务器端允许用户连接之listen()函数

1. Linux server端代码(test.cpp)#ifdef WIN32 #include <windows.h>#else #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <stdlib.h> #include <arpa/inet.h>

2017-08-15 13:21:28 967

原创 socket C/C++编程(4)Server端向OS请求sockets资源进行server端开放端口号的绑定

1. Linux server端代码(test.cpp) #ifdef WIN32 #include <windows.h>#else #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <stdlib.h> #include <arpa/inet.h

2017-08-15 13:15:37 331

原创 socket C/C++编程(3)Windows&Linux之socket兼容性编程

1. Windows socket依赖库”ws2_32.lib”编译1.0. 创建工程 VS2012创建VC++“win32”空项目到共享目录\192.168.1.100\sharedcode 1.1. 加载windows 网络库”ws2_32.lib”点击“项目”,右键“属性”,选中“链接器”,选中“输入”, 附加依赖项目的最前面添加 ”ws2_32.lib”,保存1.2. 添加新

2017-08-11 17:26:29 1283

原创 socket C/C++编程(2)Samba工具——将Windows本地文件 Automatically 同步到Linux上(反之亦成立)

1. Linux端之Samba工具的介绍及安装实现Windows主机与Linux服务器之间的资源共享,Linux操作系统提供了Samba服务,Samba服务为两种不同的操作系统架起了一座桥梁,使Linux系统和Windows系统之间能够实现互相通信。安装sudo apt-get install samba配置sudo vim /etc/samba/smb.conf尾行添加配置项(以“/home/jo

2017-08-11 12:58:36 1116

原创 CUDA(34)之算数加法

1. CPU端(程序:cpu.c)#include <stdio.h>#define N 10void add(int *a, int *b, int *c){ int tid = 0; while(tid < N){ c[tid] = a[tid] + b[tid]; tid++; }}int main(){ int a[N], b

2017-08-06 16:08:04 724

原创 Visual Studio代码缩进快捷键

Windows Visual Studio 代码缩进快捷键: “Shift + Tab”

2017-08-04 10:58:13 14500

hyperledger-fabric-readthedocs-io-en-v2.2.1.pdf

hyperledger-fabric-readthedocs-io-en-v2.2.1

2021-01-27

LibreOffice Draw 之网络图示模板 VRTnetworkequipment_1.2.0-lo

开源软件LibreOffice Draw的网络示意图示模板VRTnetworkequipment_1.2.0-lo,适用于Windows和Linux系统平台

2018-08-01

1999年到2018年香港房地产走势数据

1999年到2018年香港房地产价格变化趋势,包含有时间上,比如,单月数据,季度数据,年数据等;地段上,比如,香港岛,香港九龙,新界等相关数据。

2018-04-02

Socket programming in C

Socket编程 之标准C实现代码

2017-08-04

SHA-3(keccak)之C/C++官方源码

SHA-3(keccak)的官方C/C++源代码

2017-07-29

自动扫描拟合并获取pdf论文图像中的数据

自动并获取PDF图像中的数据(比如自动扫描拟合并获取pdf论文图像中的数据)

2017-07-03

网络端口扫描工具

网络端口扫描工具,用于扫描出指定公网ip下所有的开放的端口

2017-06-29

GeoIP Databases of Country and City

The GeoIP databases (i.e. both country and city) are tools which normally used to determine an Internet visitor's country or city based on their IP address. For more information, users can visit the official website https://dev.maxmind.com/.

2017-06-06

Performance analysis of the Blockchain

This is a report about the performance issues of Blockchian, trying to discuss the problems deeply and propose corresponding methods to solve them. Hope it will be useful to all of you, Blockchain lovers. Contact me freely via my email if any questions. Good luck!

2017-01-19

An introduction to Blockchain that is a supporting technology of Bitcoin.

This is an introduction to Blockchain, a supporting technology of Bitcoin.

2017-01-03

Linux Kervel Version 1.0 (open source)

The attachment is Linux kernel of Version 1.0, an open source. For more information, you may refer to https://www.kernel.org/pub/linux/kernel/

2017-01-03

An introduction to mathematical cryptography

本文档主要是一本信息安全专业的电子工具书《An Introduction to Mathematical Cryptography》。本书的内容主要讲解的是信息安全的基本概念,包括有解密解密安全性能评价等等;最重要的是,本书还介绍了相关的加密算法的数学模型,包括有:RSA算法,椭圆曲线算法等等。总而言之,这个电子书资源非常适合相关的信息安全方向的相关学习者。

2016-07-25

GPU与MATLAB混合编程之书本实现代码

本资源主要是《GPU与MATLAB混合编程》书中的所有的例子的实现代码。对于购买了这本书的同学会有找不到书中源代码的情况,这时候,您就可以下载本代码集合,本代码集合拥有完整的书中的所有例子的代码。

2016-07-15

Totem拓扑数据

内部包含有TOTEM使用的网络拓扑数据,数据以.mat格式进行保存,可以通过matlab命令gplot(dist,position,'-o')直接显示网络拓扑结果,方便后续的自主编程操作。

2016-05-25

TOTEM使用帮助

TOTEM使用帮助

2016-05-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除