Added working poll to socket implementation
Moved port to config.