bind conflicted with socket bind command.
Make the variable types more unique.
Added somes const's.