Branch: Tag:

2002-12-01

2002-12-01 22:46:06 by H. William Welliver III <bill@welliver.org>

some autodoc examples

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.68

1:   // Not yet finished -- Fredrik Hubinette   //! Domain Name System   //! RFC 1035 - //! $Id: DNS.pmod,v 1.67 2002/12/01 21:08:59 bill Exp $ + //! $Id: DNS.pmod,v 1.68 2002/12/01 22:46:06 bill Exp $      #pike __REAL_VERSION__   
221:   //! @returns   //! data suitable for use with   //! @[Protocols.DNS.client.do_sync_query] + //! + //! @example + //! // generate a query PDU for a address lookup on the hostname pike.ida.liu.se + //! string q=Protocols.DNS.protocol()->mkquery("pike.ida.liu.se", Protocols.DNS.C_IN, Protocols.DNS.T_A);    string mkquery(string|mapping dnameorquery, int|void cl, int|void type)    {    if(mappingp(dnameorquery))
702:   //! result of @[Protocols.DNS.protocol.mkquery]   //! @returns   //! mapping containing query result or 0 on failure/timeout + //! + //! @example + //! // perform a hostname lookup, results stored in r->an + //! object d=Protocols.DNS.client(); + //! mapping r=d->do_sync_query(d->mkquery("pike.ida.liu.se", C_IN, T_A));    mapping do_sync_query(string s)    {    object udp = Stdio.UDP();