Right. It may not be obvious but your books definition of connected is the same as mine. Consider the classical example of the set
[tex][0,1] \cup [2,3][/tex]
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 [itex]X =[0,1] \cup [2,3][/itex] as a topological space itself, under the subspace topology it inherits from [itex]\mathbb R[/itex]. In particular, our normal idea of closed and open intervals being closed and open sets is still true because it's true in [itex]\mathbb R[/itex]. But also notice that [0,1] is both closed and open in X (though it's not both closed and open in [itex]\mathbb R[/itex]). Why is this true? Well, [0,1] is closed in [itex]\mathbb R[/itex] so it's closed in X as a subspace of [itex]\mathbb R[/itex]. Additionally,
[tex]X\setminus_{[0,1]} = [2,3][/tex]
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 [itex]\mathbb R[/itex]!