modified endpoint communication with libswift
Merge pull request #299 from badrock/swift_endpoint

modified endpoint communication with libswift