Connect Event

function emulation.connect(e)
  -- called when modem or TCP socket connections
  -- DO THE EMULATION
end
Info

This function does the actual work of the emulation.
Throughout, use the object e which is the specific instance of emulation.