[litle OT]网络编程 [英] [a litle OT] network programming

查看:64
本文介绍了[litle OT]网络编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我打算用C ++编写基于客户端/服务器的应用程序。我有意b / b
编程C ++。


有很多教程如何创建一个新的套接字,并接收和

发送数据。


这些教程没有涉及的唯一内容是如何处理

通过NIC到达的数据。我是否已经实施了我自己的网络协议

特定于我的应用程序?这将是非常危险的,因为协议中可能存在许多结构故障。


我的应用程序将基于XML - 至少我的数据将通过

网络发送。是否有一些(开源)技术,它帮助我完成这个

基本任务(在我的情况下发送仲裁数据XML - 从一台机器

到另一台机器)


另外:如果我想避免任何安全问题,我需要注意什么?
问题?我的应用程序收到的数据可能包括任何恶意的

机器代码。我如何处理这些问题?


感谢Boris

Hi,

I am going to write a client/server based application with for Linux in C++. I
am programming C++ on purpose.

There are many tutorials out there how to create a new socket, and receive and
send data.

The only thing those tutorials do not cover ist how to handle the data which
arrives over the NIC. Do I have do implement my own kind of networkprotocol
specific to my application? This would be very dangerous, as there can be many
structural failures in a protocol.

My application will be XML based - at least the data I am going to send over the
network. Are there some (open source) technolgies, which help me with this
basic task (which is sending arbitray data - in my case XML - from one machine
to another)

in addition: what do I have to take care for if I want to avoid any security
issues? The data received by my application can be anyting including malicious
machine code. How do I handle such issues ?

thanks Boris

推荐答案

Boris Glawe写道:
Boris Glawe wrote:


我打算用C ++编写基于客户端/服务器的Linux应用程序。我是故意编写C ++。
Hi,

I am going to write a client/server based application with for Linux
in C++. I am programming C++ on purpose.




A * little * OT?完全OT怎么样?在ISO标准C ++中无法使用



请找一个专用于您的平台的新闻组。


Brian Rodenborn



A *little* OT? How about completely OT? There is no way to do any of
this in ISO standard C++.
Please find a newsgroup dedicated to your platform.

Brian Rodenborn


默认用户写道:
Boris Glawe写道:

Boris Glawe wrote:



我打算用C ++编写基于客户端/服务器的Linux应用程序。我是故意编写C ++的。

A * little * OT?完全OT怎么样?在ISO标准C ++中没有办法做任何这样的事情。
Hi,

I am going to write a client/server based application with for Linux
in C++. I am programming C++ on purpose.

A *little* OT? How about completely OT? There is no way to do any of
this in ISO standard C++.




那么有多少C ++程序可以做很多事情

网络?


请找一个专门用于您平台的新闻组。



How is it possible then that there are millions of C++ programs doing a lot of
networking?


Please find a newsgroup dedicated to your platform.




我实际上已经发布了comp.protocols.misc,他们已经把我发给了一个c ++新闻组。

如果你给我一个提示,你可以避免进一步的流量,在哪里找到提示或者

答案!



I''ve actually posted in comp.protocols.misc and they''ve sent me to a c++ newsgroup.
You can avoid further traffic if you give me a hint, where to find a hint or an
answer !


Boris Glawe写道:
Boris Glawe wrote:
那么有多少C ++可行怎么可能?程序做了很多网络?


因为大多数程序都没有严格遵守(即完全

便携式)。他们依赖于依赖于平台的功能来执行在标准C ++中无法完成的事情。如果他们想要移植到几个平台上,他们会创建一个抽象层,在不同的平台上编译不同的b $ b。要将这些功能添加到标准中会给那些实现C ++编译器和库的人带来负担(而且他们的

工作已经足够强大了。)

如果你给我一个提示,在哪里找到
提示或答案,你可以避免进一步的交通!
How is it possible then that there are millions of C++ programs doing a
lot of networking?
Because most programs are not strictly conforming (that is, fully
portable). They rely on platform-dependent features to do things that
can''t be done in standard C++. If they want to be portable to several
platforms, they create a layer of abstraction which compiles differently
on different platforms. To add these features to the standard would put
a burden on those implementing C++ compilers and libraries (and their
job is tough enough already.)
You can avoid further traffic if you give me a hint, where to find a
hint or an answer !




你试图敲诈我们。那很好笑。当你年纪较大的时候再试一次。

-

Derrick Coetzee

我批准这个新闻组发布到公共领域。我不承担所有

明示或暗示保证并承担所有责任。我不是专业人士。



You''re attempting to blackmail us. That''s funny. Try again when you''re a
bit older.
--
Derrick Coetzee
I grant this newsgroup posting into the public domain. I disclaim all
express or implied warranty and all liability. I am not a professional.


这篇关于[litle OT]网络编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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