basic server socket implemented