¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: twsapi: new here


 

I have a generic "sockGets()" that reads lines from a socket and
uses a
large buffer to collect replies from the server. If there is an
incomplete
message the sockGets() will just time out. At that point the app
can
decide what to do but as far as I know a timeout is fatal.

Now here is the real question, and if you have the answer, it'll save
a lot of digging and trial/error on my part.

Is the error truely fatal, ie application must totally close? Or,
will TWS 'be happy' if you close the connection cleanly, and then try
restart.

Up until now, I've only used the wrapper libraries they provided, and
have got all the rest of our application 'happy' now. It's the
connect/disconnect problem that is my current show stopper, and if
simply fixing the wrappers will cure it, that shouldn't be hard.

Join [email protected] to automatically receive all group messages.