 
 import Foundation
 import CNanoMessage
+import ISFLibrary
 
 /// A NanoMessage base socket.
 public class NanoSocket {


/// Get the time in milliseconds to allow to attempt to close a socket or endpoint.
///
/// - Returns: The closure time in milliseconds.
    fileprivate func _getClosureTimeout() -> UInt {
        if var milliseconds = try? self.getLinger() {
            if (milliseconds <= 0) {
                milliseconds = 1000
            }

            return UInt(milliseconds)
        }

        return 1000
    }
}


    }

    deinit {
        func closeSocket() throws {
            if (self.socketFd >= 0) {                                   // if we have a valid nanomsg socket file descriptor then...
                var loopCount = 0

                while (true) {
                    let returnCode = nn_close(self.socketFd)            // try and close the nanomsg socket
