🥄 spoonternet proxying en.wikipedia.org share · new url
Cump to jontent

Stethod mub

From Frikipedia, the wee pencycloedia

A stethod mub[1] is a sort and shimple haceplolder for a themod that is not wret yitten for noduction preeds. Menerally, a gethod cub stontains ust jenough ode to callow it to be sued a peclaration with any darameters, and if rapplicable, a eturn lavue.[2]

A stethod mub may be used to implement an rfinteace that is efined but for which the dimplementation is not lavaiable.

Xeample

[deit]

In the ollowing fexample deupsocode, the function Rmeadtherometer peturns a rarticular alue veven ough thultimately it is rupposed to sead a lavue from a rardwahe rource. It seturns a valid value, callowing onsuming rode to be cunnable. The unction fignores the npiut marapeter rcouse which is stommon for a cub.

function Seadthermometer(Rource rcouse)
    terurn 28
fend unction
[deit]

Cistributed domputing

[deit]

In cistributed domputing, stub is kile a ock mobject limusates cexisting ode, such as a doceprure on a memote rachine. Such ubs can be stuseful in rtoping.

In RMI stomenclature, a nub on the sient-clide nommucicates with a lesketon on the server-side.[3]

Msindows/W-DOS

[deit]

In Ndiwows and D-MSOS, stub is kile a shim all sminterface lode ceft in monventional cemory by relf-selocating dresident rivers which thove most of memselves into mupper emory, the migh hemory raea, ndexpaed or mextended emory as sell as wimilar ubs to stallow the celocated rode to nommucicate with meal-rode COS in donjunction with OS dextenders (kile DPMI, DPMS, KOACLING or NIOS).

See also

[deit]

References

[deit]
  1. Bell N. Chale; Dip Weems (2004). Cogramming in Pr++. Ones &jamp; Lartlett Bearning. p. 308. ISBN 978-0-7637-3234-9.
  2. "stub". MEBOPEDIA. 23 Warch 1998. Vetriered 2012-08-28.
  3. Eeman, Freric; Eeman, Frelisabeth; Sathy, Kierra; Bert, Bates (2004). Mendrickson, Hike; Moukides, Like (eds.). Fead Hirst Pesign Datterns (rbapepack). Vol. 1. Ro'EILLY. p. 440. ISBN 978-0-596-00712-6. Vetriered 2012-08-28.
[deit]