GhostServer#

class ansys.dpf.core.server_types.GhostServer(ip: str, port: int, close_time: float = None)#

Class used to keep in memory the port used by previous servers.

Overview#

port

Returns the port of shutdown server if the shutdown happened less than 10s ago.

__call__

Provide for making the instance callable to simply return the instance itself.

Import detail#

from ansys.dpf.core.server_types import GhostServer

Property detail#

property GhostServer.port: int#

Returns the port of shutdown server if the shutdown happened less than 10s ago.

Attribute detail#

GhostServer.ip: str#
GhostServer.close_time: float#
GhostServer.closed_time = None#

Method detail#

GhostServer.__call__(*args, **kwargs)#

Provide for making the instance callable to simply return the instance itself.