private synchronized void setState(int state) {
		if (getState() != STATE_INVALID)
			this.state = state;
	}
Sets the current state of this IOConnection.

@param state
           the new state
src/io/socket/IOConnection.java