当前位置:网站首页>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>
边栏推荐
- Unity初学2——瓦片的制作以及世界的交互(2d)
- JVM memory structure
- 关于DDoS的几个误区
- day16-集合上
- TCP套接口通信实验
- Official tutorial redshift 07 instances and proxy
- 高级套接口编程(选项和控制信息)
- 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?
- UDP套接口通信实验
猜你喜欢
随机推荐
EtherCAT主站掉线后,如何保证目标系统免受故障影响?
使用STP生成树协议解决网络中的二层环路问题
如何判断业务被DDoS攻击?又会造成哪些危害?
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
On defect description style
Redshift 2.6.41 for maya2018 水印去除
虹科 | 使用JESD204串行接口高速桥接模拟和数字世界
waf防护是什么
Webshell管理工具的流量特征
Official tutorial redshift 05 system parameter detailed explanation
钓鱼邮件处置
Unity初学2——瓦片的制作以及世界的交互(2d)
2022 summer second day information competition learning achievement sharing 2
Navicat for Oracle Cannot create oci environment
虹科案例 | PAC:一种整合了softPLC控制逻辑、HMI和其他服务功能的集成控制解决方案
JVM memory structure
虹科Automation softPLC | 虹科KPA MoDK运行环境与搭建步骤(3)——MoDK例程测试
Clickhouse failed to import CSV without error but no data
虹科为您分享EtherCAT demo,教您如何从其他协议快速过渡到EtherCAT工业总线
c语言面试准备一(谈谈理解系类)




![[leetcode brush questions] array 3 - divide and conquer](/img/76/bc3d9ba0b84578e17bf30195bda5d1.png)




