Simplify the usage of internet posix socket by providing high level functions