These invariants are checked by vconn_open() and stream_open(), but there
is no reason not to check them earlier also. vconn and stream creation
don't have to go through vconn_open() and stream_open(), so this ensures
that the invariants get checked either way.
: SCS_DISCONNECTED);
stream->error = connect_status;
stream->name = xstrdup(name);
+ assert(stream->state != SCS_CONNECTING || class->connect);
}
void
vconn->local_ip = 0;
vconn->local_port = 0;
vconn->name = xstrdup(name);
+ assert(vconn->state != VCS_CONNECTING || class->connect);
}
void