Your helpful code of Socket API Helper does not compile on Swift 5 any more.
Reasons:
1: Cannot convert value of type 'UnsafePointer' to expected argument type 'UnsafeMutablePointer'
2: Cannot pass immutable value as inout argument: 'pointee' is a get-only property
And update would be super helpful and make my day.
Thx!
PS: I was forced to choose at least one tag and could not find a suitable one. Thus Xcode. Sorry.