WIP: Attempt at using osmo_fsm from bankd. futile.
osmo timers and osmo fsm are both not thread safe :(
Change-Id: I6eb72fdbe3cc02e7fdc8afcdc033d007355d3fe1
diff --git a/src/remsim_client_fsm.c b/src/remsim_client_fsm.c
index 2459a14..e116ca3 100644
--- a/src/remsim_client_fsm.c
+++ b/src/remsim_client_fsm.c
@@ -91,7 +91,7 @@
struct bankd_client *bc = (struct bankd_client *) fi->priv;
RsproPDU_t *pdu;
- /* FIXME: Send ClientConnReq */
+ /* FIXME: make configurable */
const ClientSlot_t clslot = { .clientId = 23, .slotNr = 1 };
pdu = rspro_gen_ConnectClientReq(&bc->own_comp_id, &clslot);
ipa_client_conn_send_rspro(bc->bankd_conn, pdu);
@@ -307,12 +307,14 @@
if (!srvc->conn) {
fprintf(stderr, "Unable to create socket: %s\n", strerror(errno));
/* FIXME */
+ OSMO_ASSERT(0);
}
/* Attempt to connect TCP socket */
rc = ipa_client_conn_open(srvc->conn);
if (rc < 0) {
fprintf(stderr, "Unable to connect: %s\n", strerror(errno));
/* FIXME */
+ OSMO_ASSERT(0);
}
}