YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.HttpServerProbe Class Reference

Asks whether the local HTTP server accepts connections: a plain TCP connect to the loopback address of its port, nothing is sent. More...

Collaboration diagram for de.yaacc.share.HttpServerProbe:
Collaboration graph

Static Public Member Functions

static boolean isRunning ()
 Blocks for at most TIMEOUT_MILLIS.
 

Detailed Description

Asks whether the local HTTP server accepts connections: a plain TCP connect to the loopback address of its port, nothing is sent.

The server runs whenever the app process lives, so this only tells that it came up (it may still be starting after a cold start).

Member Function Documentation

◆ isRunning()

static boolean de.yaacc.share.HttpServerProbe.isRunning ( )
static

Blocks for at most TIMEOUT_MILLIS.

Do NOT call it on the main thread.

Returns
true if the connection was accepted

Referenced by de.yaacc.upnp.UpnpClient.isHttpServerRunning().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: