15.06.2013 Views

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

Dispensa in PDF - Dipartimento di Scienze Ambientali, Informatica e ...

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.

collegati tra loro e per farlo utilizza una struttura ad albero.<br />

2.1.3.1 Estensione del Web Server (ISAPI e NSAPI)<br />

Carnielli Efrem: Programmazione a componenti<br />

Client/server <strong>in</strong> dettaglio<br />

Il web server (anch'esso a livello applicativo) può essere <strong>in</strong>vece esteso per ottenere<br />

funzionalità applicative.<br />

Qu<strong>in</strong><strong>di</strong> possiamo parlare <strong>di</strong> due concetti <strong>di</strong>versi: estensione o applicazione a se stante.<br />

Per dare un'idea della <strong>di</strong>fferenza possiamo associare il concetto <strong>di</strong> estensione a<br />

quello <strong>di</strong> thread e quello <strong>di</strong> applicazione a quello <strong>di</strong> processo.<br />

L'applicazione è il web server, esso può essere esteso da librerie <strong>di</strong> collegamento<br />

d<strong>in</strong>amico DLL.<br />

Figura 2.8. DLL e API<br />

DLL<br />

Come si vede <strong>in</strong> figura, la D<strong>in</strong>amic L<strong>in</strong>k Library si presenta come un componente<br />

con una particolare <strong>in</strong>terfaccia API (application programm<strong>in</strong>g <strong>in</strong>terface) che<br />

permette ad un'eventuale applicazione che ne voglia far uso, <strong>di</strong> accedere ai<br />

medo<strong>di</strong>, alle rout<strong>in</strong>e, della libreria.<br />

Consentendo al web server <strong>di</strong> <strong>in</strong>vocare le rout<strong>in</strong>e presenti della DLL il web server<br />

ottiene funzionalità applicative.<br />

Citiamo due standard <strong>di</strong> <strong>in</strong>terfacce conosciute:<br />

• ISAPI<br />

• NSAPI<br />

Le ISAPI (Internet Server Application Programm<strong>in</strong>g Interface) sono lo standard<br />

per microsoft. In altre parole, si tratta <strong>di</strong> programmi atti ad <strong>in</strong>teragire e lavorare<br />

API<br />

28

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

Saved successfully!

Ooh no, something went wrong!