Right. It may not be obvious but your books definition of connected is the same as mine. Consider the classical example of the set
[0,1] \cup [2,3]
This set is not connected, right? It's pretty obvious when you look at it as being the union of disjoint sets, but let's take a look at it from a clopen (closed and open) point of view.
Consider X =[0,1] \cup [2,3] as a topological space itself, under the subspace topology it inherits from \mathbb R. In particular, our normal idea of closed and open intervals being closed and open sets is still true because it's true in \mathbb R. But also notice that [0,1] is both closed and open in X (though it's not both closed and open in \mathbb R). Why is this true? Well, [0,1] is closed in \mathbb R so it's closed in X as a subspace of \mathbb R. Additionally,
X\setminus_{[0,1]} = [2,3]
That is, its relative complement in X is closed. By definition, a set is open if its complement is closed and so [0,1] is also open!
Thus [0,1] is both open and closed, and is a proper subset of X. So X has a proper, non-trivial clopen subset and hence is not connected.
Edit: The thing to take away from this is that [0,1] is both open and closed as a subset of X, but NOT as a subset of \mathbb R!