I'm trying to implement a very simple networking solution in C++. I've found a couple guides, but they all go far above and beyond what I actually need to do, so I figured I'd ask.

I need to connect two computers. One computer will be broadcasting a (changing) integer on some particular port. The other computer will be listening to the first computer on that port and display said integer. The actual implementation is, obviously, more complex, but is unimportant. At the very core, this is all I need to do.

If anyone has a solution to this problem, I would greatly appreciate it.