当前位置:网站首页>RAW高级套接口实验
RAW高级套接口实验
2022-07-29 05:25:00 【qq_46475176】
- 简要实验步骤:
1) 分别打开终端编译tcp_server.c,tcp_client.c生成对应的可执行文件tcp_server,tcp_client。
2) 另行打开终端编译raw.c生成可执行文件raw。
3) 运行可执行文件raw。
4) 在其他终端中分别运行可执行文件tcp_server,tcp_client。
5) 客户端输入信息,服务端接收并返回给客户端,此时产生数据包,在raw终端产生数据。
raw.c代码如下:
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
边栏推荐
- Leetcode 557. reverse word III in string
- Leetcode 977. Square of ordered array
- 虹科分享 | 测试与验证复杂的FPGA设计(2)——如何在IP核中执行面向全局的仿真
- UE4/UE5 C盘变大处理
- Leetcode 9. palindromes
- Leetcode 167. sum of two numbers II - input ordered array
- IGMP协议软件开发实验
- 服务器135、137、138、139、445等端口解释和关闭方法
- 官方教程 Redshift 04 渲染参数
- 官方教程 Redshift 06 Opt参数
猜你喜欢
Vivado IP核之浮点数乘除法 Floating-point
Unity初学4——帧动画以及主角攻击(2d)
UE4 高光官方参考值
EtherCAT主站掉线后,如何保证目标系统免受故障影响?
LeetCode #977.有序数组的平方
Install MySQL from scratch (MySQL installation document - unzipped version)
Vivado IP核之复数浮点数除法 Floating-point
UE5 光影基础 阴影全解析 锯齿阴影解决方案 Lumen
Maya aces workflow configuration (Arnold and redshift map configuration specification - restore the correct effect of the map under the SP aces process) PS restore the rendered map under the aces proc
Abstract encapsulation inheritance polymorphism
随机推荐
Official tutorial redshift 06 opt parameters
Leetcode 876. Intermediate node of linked list
赛博朋克版特效shader
Official tutorial redshift 05 system parameter detailed explanation
Official tutorial redshift 03 parameters and general instructions of various GI
Unity-默认渲染管线-刻晴卡渲shader
官方教程 Redshift 08 Light
动态规划总结
官方教程 Redshift 03 各种GI的参数和常规使用说明
Official tutorial redshift 07 instances and proxy
钓鱼邮件处置
虹科教您 | 想进入TSN领域?虹科教您如何搭建TSN测试系统
Shell tool finalshell
计算机网络面试题
c语言问题
高级套接口编程(选项和控制信息)
SQL Developer图形化窗口创建数据库(表空间和用户)
Leetcode - Tips
JUC collection class is unsafe
Simple code to realize PDF to word document