4 ms·
I am puzzled as to why there is a a dispatch() method. Isn't the serve() method enough? Also, both the Inbox constructor and the serve() method takes the liste
by petermonsson 14y ago
I am puzzled as to why there is a a dispatch() method. Isn't the serve() method enough?
Also, both the Inbox constructor and the serve() method takes the listening port and address. Now I need to read the source code in order to figure out where I should put the port number and what happens if I put in two different port numbers. (insert appropriate sort of unhappy smiley)
I believe my feedback to Kenneth (if he even sees this) is that this SMTP server can be even simpler.
- kenneth_reitz 14y agoThanks for the feedback :) The dispatch method is for deferring to cli arguments for external configuration (say, a Procfile). The constructor is used for defaults.