modified to support swift error handling
modified to support swift error handling

asturkmani/Project-Athena,swiftsocket/SwiftSocket,hasyimibhar/SwiftSocket,hasyimibhar/SwiftSocket,asturkmani/Project-Athena,swiftsocket/SwiftSocket,hasyimibhar/SwiftSocket,swiftsocket/SwiftSocket