02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1<br />

Overview<br />

<strong>Tornado</strong> Target Server<br />

1<br />

The target server runs on the host, and connects the <strong>Tornado</strong> tools to the target<br />

agent. There is one server for each target; all host tools access the target through<br />

this server, whose function is to satisfy the tool requests by breaking each request<br />

into the necessary transactions with the target agent. The target server manages the<br />

details of whatever connection method to the target is required, so that each tool<br />

need not be concerned with host-to-target transport mechanisms.<br />

In some cases, the server passes a tool’s service request directly to the target agent.<br />

In other cases, requests can be fulfilled entirely within the target server on the host.<br />

For example, when a target-memory read hits a memory region already cached in<br />

the target server, no actual host-to-target transaction is needed.<br />

The target server also allocates target memory from a pool dedicated to the host<br />

tools, and manages the target’s symbol table on the host. This permits the server to<br />

do most of the work of dynamic linking—address resolution—on the host system,<br />

before downloading a new module to the target.<br />

A target server need not be on the same host as the <strong>Tornado</strong> tools, as long as the<br />

tools have network access to the host where the target server is running.<br />

Target servers can be started from the <strong>Tornado</strong> launcher or from the UNIX<br />

command line (or scripts). See 2.7 Connecting a <strong>Tornado</strong> Target Server, p.54 for a<br />

discussion of starting a server from the UNIX command line, and see 3.5 Managing<br />

Target Servers, p.72 for details on using graphical facilities in the launcher. For<br />

reference information on target servers, see the tgtsvr entry in D. <strong>Tornado</strong> Tools<br />

Reference.<br />

<strong>Tornado</strong> Registry<br />

<strong>Tornado</strong> provides a central target server registry that allows you to select a target<br />

server by a convenient name. The registry associates a target server’s name with<br />

the network address needed to connect with that target server. You can see the<br />

registry indirectly through the list of available targets. The <strong>Tornado</strong> registry need<br />

not run on the same host as your tools, as long as it is accessible on the network.<br />

To help keep server names unique over a network of interacting hosts, targetserver<br />

names have the form targetName@host, where targetName is a target-server<br />

name selected by the user who launches a server (with the network name of the<br />

target as a default). The registry rejects registration attempts for names that are<br />

already in use.<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!