Tue Sep 22, 2009 12:43 pm
well, to make it clear - when you do API call, you will get answer as soon as response is formed and sent. Depending on your OS there is buffer assigned to your TCP connection that you have to read to receive the responses, usually it is couple packets long (standard 1500 byte ones) when that buffer is full you cannot send in anything, and incoming packets are dropped. And that all depends on OS you are executing your API application.
You can do it that way - create connection - make thread that reads from that socket and then you can just fire those commands to router, and receive responses from that read thread.
If you want more than that, you have to create another connection to router and that will be completely different login session.
edit:
as far as i remember that might be "TCP window"