开发者

Network Programming? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. 开发者_JS百科

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 9 years ago.

Improve this question

I want to leave strictly desktop programming and start exploring networking. I want to make a little program that just sends data from computer A to B running the same program.

Just a few questions before I start...

1) What is a better language for net programming Python or C#?

2) Could you recommend some stuff to help me understand how data is sent over the web?

Thanks!


It really depends on what you're doing. Both Python and C# have very capable modules for network communication - I'd say you'd be equally well-off in either given no knowledge of what you're doing. The decision between Python and C# will probably come down to whether your application lends itself more to the dynamic typing of Python or the static typing of C#.

As for your second question, I've always found it interesting to look at network traffic using a packet sniffer such as Wireshark. Browse to a website in Firefox and (assuming GZip encoding is disabled in the web-browser or on the server) you'll be able to see how the data is transferred. This works for other protocols as well. Reading the RFCs for various protocols can also give you some insight. For a few examples, IRC (1459), FTP (959), HTTP 1.1 (2616). You can find them at the Internet Engineering Task Force website.


Both languages are equally capable. It is a matter of personal preference.

What resources you need will depend on the application you intend to write. The two most important things you will need to know:

  • The Application Layer, Transport Layer, & Internet Layers of the Internet
  • Socket Programming

You're diving into a very broad subject, with a lot of information. I found this book to be helpful to me.


I do not want to compare languages, but as you wanted recommendation, I recommend you python and twisted framework


I think C++ is the best, if you consider the efficiency and hardware interactions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜