当前位置:网站首页>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>
边栏推荐
猜你喜欢
随机推荐
Summary of winter vacation training (1.23~1.28) [first tier]
什么是DNS放大攻击
基于TCP的在线词典
通过os-shell引发的mysql拿shell的思考
V-ray 5 ACEScg 工作流程设置
基于FPGA的4位减法器设计及仿真代码
Overview and summary of GI engine in redshift 024, the official tutorial
6898 changing matrix problem solution
c语言问题
Arrays & object & System & Math & random & Packaging
Official tutorial redshift 08 light
[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update
2022 summer second day information competition learning achievement sharing 1
基于udp通信的在线多人聊天室
Ue5 light shadow basic shadow full resolution sawtooth shadow solution lumen
电脑系统没有standard tcp/ip port端口的处理操作
虹科方案 | 在数字化的变电站中低成本实现无缝集成的独特解决方案
Rowkey design
三、广域通信网
练习:存放部门信息









