This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
--- | |
title: "读书、观影和旅行记录" | |
date: 2019-05-19 | |
--- | |
--> | |
<style> | |
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,700,800'); | |
* { | |
box-sizing: border-box; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define WIN32_LEAN_AND_MEAN | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include<windows.h> //Sleep函数所需 | |
#include <winsock2.h> | |
#pragma comment(lib,"ws2_32.lib") //套接字编程需要的库文件 | |
#define ICMP_ECHO 8 // 请求回显 ping请求 请求回显8 | |
#define ICMP_ECHOREPLY 0 // 回显应答0 |