minor, actually keep a convo up, calling tws_send() on PREP and tws_recv() on BANG

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, fix, add twsapi libs via LDADD for quo-tws as linkers complain about missing symbols

Signed-off-by: Sebastian Freundt <hroptatyr@fresse.org>
minor, provide error() function that uses logerr as destination

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, perform tws connection through state machin upon PREP

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, close sockets when trying connect() in tws_sock()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, only start the reconnect timer if there's none active at the time

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, make sure the EWrapper client thing in the tws_t object is non-null for a state query

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, don't request current time ourselves (and don't make it a condition for the status)

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, cosmetics, adhere to 4-letter debugging codes

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, allow fini_tws() to be called twice in a row, conditionalise on TWS_PRIV_CLI()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, upon fini_tws() wipe the slot in our context so subsequent calls to fini_tws() would succeed

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/quo' into next

* feat/quo:
  minor, upon fini_tws() wipe the slot in our context so subsequent calls to fini_tws() would succeed
  fix, PEBKAC, allow fini_tws() to be called twice in a row, conditionalise on TWS_PRIV_CLI()
  chore, cosmetics, adhere to 4-letter debugging codes
  minor, don't request current time ourselves (and don't make it a condition for the status)
  minor, make sure the EWrapper client thing in the tws_t object is non-null for a state query
  fix, PEBKAC, only start the reconnect timer if there's none active at the time
  fix, PEBKAC, close sockets when trying connect() in tws_sock()
  minor, perform tws connection through state machin upon PREP
  minor, provide error() function that uses logerr as destination
  chore, fix, add twsapi libs via LDADD for quo-tws as linkers complain about missing symbols
  minor, actually keep a convo up, calling tws_send() on PREP and tws_recv() on BANG
minor, make error() function extern so wrapper code can call it

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, split wrappers into aspects, IB's api doesn't allow us to change the wrappers during runtime

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, call global error() upon error() or winError() or connectionClose() in quo wrapper

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, externalise logging stuff (error()) into logger.[ch]

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, externalise detaching stuff (detach()) into daemonise.[ch]

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, clone quo-tws into pf-tws

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, clone quo-tws into ox-tws

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/gen-wrapper' into next

* feat/gen-wrapper:
  minor, clone quo-tws into ox-tws
  minor, clone quo-tws into pf-tws
  minor, externalise detaching stuff (detach()) into daemonise.[ch]
  minor, externalise logging stuff (error()) into logger.[ch]
  chore, call global error() upon error() or winError() or connectionClose() in quo wrapper
  minor, split wrappers into aspects, IB's api doesn't allow us to change the wrappers during runtime
  minor, make error() function extern so wrapper code can call it