[Disclaimer: my knowledge of sockets is very rusty and I just fall into R, so if I missed something completely obvious, please indicate this!]
If I understand the (rarely documented) R functions for creating and managing sockets, namely socketConnection and make.socket , it seems that when creating the server socket ( server=TRUE ), the moral equivalent of the following is fulfilled:
s = socket(yada yada); listen(s, ...); s2 = accept(s, ...); close(s, ...);
and now I can work with s2 , but I can not get hung up on the lag of incoming connections to s . Is this more or less correct? Is there a way to continue listening and continue to work with additional incoming connections after processing the first?
r sockets
Derrick Turk
source share