we...@pythian.com writes:
> After establishing the connection, if the connection is closed very soon,
> could we say that the target service doesn't exist. If the connection stays
> open, then, the target service does exist? Is this going to work?
Yes, that probably will work.
Note the server might also close the connection early under some
conditions (e.g. if it crashed or detected late that the connection
should not proceed for some reason). Depending on your requirements,
detecting these conditions may be desirable anyway.