Adds socket controls.
Merge pull request #2 from jdarling91/master

Adds socket controls.