Removed config from socket to make things simpler.
Removed enum for settings.
Removed isblocking config from socket and simplified code.