如何创建在C ++ RAW TCP / IP数据包? [英] How do I create RAW TCP/IP packets in C++?

查看:235
本文介绍了如何创建在C ++ RAW TCP / IP数据包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个开始的C ++程序员/网络管理员,但我想我可以学习如何做到这一点,如果有人点我在正确的方向。大多数教程都使用旧code不再适用于某种原因证明。

I'm a beginning C++ programmer / network admin, but I figure I can learn how to do this if someone points me in the right direction. Most of the tutorials are demonstrated using old code that no longer works for some reason.

由于我在Linux上,我需要的是如何写入原始Berkeley套接字的解释。有人可以给我一个快速运行下来?

Since I'm on Linux, all I need is an explanation on how to write raw Berkeley sockets. Can someone give me a quick run down?

推荐答案

阅读 Beej的指南启动在套接字编程。它会带给你快速了解如何开始写网络code。之后,你应该能够从阅读手册页拿起越来越多的信息。

Start by reading Beej's guide on socket programming . It will bring you up to speed on how to start writing network code. After that you should be able to pick up more and more information from reading the man pages.

它的大部分将包括阅读你喜爱的图书馆的文档,并手册页有基本的了解。

Most of it will consist of reading the documentation for your favourite library, and a basic understanding of man pages.

这篇关于如何创建在C ++ RAW TCP / IP数据包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆