# Namespace mockup

Mockup module

- Defined in: mockup.js

## Method Summary

## Method Detail

- <static> mockup.runClientMockup(port, host, commands, callback, debug)

  Runs a batch of commands against a server

      var cmds = ["EHLO FOOBAR", "STARTTLS", "QUIT"];
      runClientMockup(25, "mail.hot.ee", cmds, function(resp){
          console.log("Final:", resp.toString("utf-8").trim());
      });

  Parameters:
  {Number} port
    Port number
  {String} host
    Hostname to connect to
  {Array} commands
    Command list to be sent to server
  {Function} callback
    Callback function to run on completion, has the last response from the server as a param
  {Boolean} debug Optional
    if set to true log all input/output