Skip to content

Instantly share code, notes, and snippets.

@dLuna
Created July 17, 2013 15:55
Show Gist options
  • Save dLuna/6021893 to your computer and use it in GitHub Desktop.
Save dLuna/6021893 to your computer and use it in GitHub Desktop.
adding server socket information and allowing custom hostname responses
added utility method for wordwrapping
added suppport for multi-line banners
shoehorning in random responses so we can use as a test server
added suppport for multi-line banners
handle custom hostname banner combos
fixes for EHLO handing
change return type to binary to match spec for init saying Hostname is binary
fix case when socket disconnects immediately
whitespace fix. replace all tabs with 4 spaces
allow for bypassing hostname lookups when we want an explicit hostname
allow binding to specified IP addresses
handle case when socket is closed before we can send response
get details on socket errors
start handling very annoying closed socket errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment