I've been programming on and off as a hobby for some time, but I've never done anything with networking, and since I can't get the docs to work with Ubuntu I've been rather stumped.

Could someone offer an example of a program that would send a package of data (say 128 bytes) to another computer on a wired network? And then a program to catch that package on the other end?

I'm running Python 2.5 on Ubuntu.

Assume complete lack of knowledge about network programming, but not about Python itself. Any help would be greatly appreciated. :)

Recommended Answers

All 2 Replies

There is a pretty simple sample program for python here.

It doesn't do the best job of explaining the code, but it is a simple working example.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.