func bind(type: SocketType,
              closure: (Binding) throws -> Void) throws {
        try closure(bind(type: type))
    }