当前位置:网站首页>Raw advanced socket experiment
Raw advanced socket experiment
2022-07-29 06:33:00 【qq_ forty-six million four hundred and seventy-five thousand on】
- Brief experimental steps :
1) Open the terminal to compile tcp_server.c,tcp_client.c Generate the corresponding executable file tcp_server,tcp_client.
2) Open the terminal compilation separately raw.c Generate executable files raw.
3) Run the executable raw.
4) Run the executable files separately in other terminals tcp_server,tcp_client.
5) Client input information , The server receives and returns to the client , At this time, a packet is generated , stay raw Terminal generates data .
raw.c The code is as follows :
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
边栏推荐
- 自动化测试的生命周期是什么?
- 虹科分享 | 带您全面认识“CAN总线错误”(一)——CAN总线错误与错误帧
- Leetcode notes 452. minimum number of arrows to burst balloons (medium) 452. detonate balloons with the minimum number of arrows (medium)
- DDoS攻击与CC攻击的区别
- 服务器135、137、138、139、445等端口解释和关闭方法
- Summary of winter vacation training (1.23~1.28) [first tier]
- Why are the job requirements for software testing in 2022 getting higher and higher? Is there any secret in it?
- V-ray 5 ACEScg 工作流程设置
- What is the lifecycle of automated testing?
- 一文看懂网络安全五年之巨变
猜你喜欢

Redshift restore SP effect - SP map export settings and map import configuration

STP生成树原理及选举规则举例

官方教程 Redshift 02 4中GI引擎概述及总结

Circular linked list and bidirectional linked list

UE4/UE5 C盘变大处理

Leetcode - Tips

虹科教您 | 想进入TSN领域?虹科教您如何搭建TSN测试系统

Ue5 light shadow basic shadow full resolution sawtooth shadow solution lumen

网络安全学习(二)

基于FPGA的IIR型滤波器设计
随机推荐
Plugin location in mavan
Leetcode notes 605. can place flowers (easy) 605. planting flowers
黑客攻击入侵服务器的6种常见方式
右值引用和移动构造
什么是撞库及撞库攻击的基本原理
day17_集合下
一文看懂网络安全五年之巨变
day09_static&final&代码块&抽象类&接口&内部类
6898 changing matrix problem solution
FPGA—奇偶数分频和小数分频代码例程
虹科Automation softPLC | 虹科KPA MoDK运行环境与搭建步骤(3)——MoDK例程测试
Official tutorial redshift 07 instances and proxy
基于TCP的在线词典
OSPF理论介绍
虹科Automation softPLC | 虹科KPA MoDK运行环境与搭建步骤(2)——MoDK运行环境搭建
Idea practical shortcut key novice must see
服务器常见故障及其解决方法
Vivado IP核之浮点数加减法 Floating-point
Thinking about MySQL taking shell through OS shell
HOG+SVM实现行人检测