Actually I want to develope a game of scrable in which I need to connect two computers and program both of them, such that both of them play with each other.
My new favorite toy for this sort of thing is Apache Qpid. It's a messaging system that implements AMQP. It has both a C++ and a Java implementation, as well as language bindings for C#, Python and Ruby.