add socket code

Signed-off-by: Janos Laube <janos.dev@gmail.com>
build static library

Signed-off-by: Janos Laube <janos.dev@gmail.com>