~ubuntu-branches/ubuntu/maverick/pdns/maverick-updates

« back to all changes in this revision

Viewing changes to modules/pipebackend/pipebackend.cc

  • Committer: Bazaar Package Importer
  • Author(s): Debian PowerDNS Maintainers
  • Date: 2006-05-06 10:40:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060506104044-v9hczzfl7dcri6qt
Tags: 2.9.20-3
Disable the recursor, this is in a separate package now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- sateh-c -*- 
2
2
// File    : pdnsbackend.cc
3
 
// Version : $Id: pipebackend.cc 525 2005-10-28 22:34:49Z ahu $ 
 
3
// Version : $Id: pipebackend.cc 546 2005-11-11 21:02:51Z ahu $ 
4
4
//
5
5
 
6
6
#include <string>
22
22
#include <sys/socket.h>
23
23
#include <netinet/in.h>
24
24
#include <arpa/inet.h>
 
25
#include <boost/lexical_cast.hpp>
 
26
 
 
27
using namespace boost;
25
28
 
26
29
#include "pipebackend.hh"
27
30
 
49
52
      return;
50
53
 
51
54
   d_cp=new CoProcess(d_command, d_timeout); 
52
 
   d_cp->send("HELO\t1");
 
55
   d_cp->send("HELO\t"+lexical_cast<string>(arg().asNum("pipebackend-abi-version")));
53
56
   string banner;
54
57
   d_cp->receive(banner); 
55
58
   L<<Logger::Error<<"Backend launched with banner: "<<banner<<endl;