static void state_transition(struct rconn *, enum state);
static void set_vconn_name(struct rconn *, const char *name);
static int try_send(struct rconn *);
-static int reconnect(struct rconn *);
+static void reconnect(struct rconn *);
static void report_error(struct rconn *, int error);
static void disconnect(struct rconn *, int error);
static void flush_queue(struct rconn *);
return rc->probe_interval;
}
-int
+void
rconn_connect(struct rconn *rc, const char *name)
{
rconn_disconnect(rc);
set_vconn_name(rc, name);
rc->reliable = true;
- return reconnect(rc);
+ reconnect(rc);
}
void
/* Nothing to do. */
}
-static int
+static void
reconnect(struct rconn *rc)
{
int retval;
rc->backoff_deadline = TIME_MAX; /* Prevent resetting backoff. */
disconnect(rc, retval);
}
- return retval;
}
static unsigned int
void rconn_set_probe_interval(struct rconn *, int inactivity_probe_interval);
int rconn_get_probe_interval(const struct rconn *);
-int rconn_connect(struct rconn *, const char *name);
+void rconn_connect(struct rconn *, const char *name);
void rconn_connect_unreliably(struct rconn *, struct vconn *vconn);
void rconn_reconnect(struct rconn *);
void rconn_disconnect(struct rconn *);