Server is not active?

ollie ollie at home.net
Sat Sep 28 10:13:06 PDT 2013


On Sat, 28 Sep 2013 08:42:16 +0200, wagtail wrote:

> I tried rewriting code with using "ADDR_ANY", but do not work...

Ali Çehreli posted some examples in the D.learn group earlier.
He creates the socket then uses its member functions to setup
the connection, but it should work either way.

Try something like this:

auto inet = new InternetAddress(port);

The constructor for class InternetAddress will set addr to ADDR_ANY.
This should work if your server and client are on the same machine.
Otherwise you need to set the address to the IP of your server.

Would need some basic compilable code to know for sure how to make
that work in your situation.


More information about the Digitalmars-d-learn mailing list