[R] Writing to a UDP server from R?
Saptarshi Guha
saptarshi.guha at gmail.com
Mon Jul 27 07:03:13 CEST 2009
Hello,
I have used socketConnection to connect to a TCP server. I havent
figured out a way to do the same with a UDP server.
i.e I have a server listening on 9000, communicating via UDP. I would
like to , from R, send packets to this server,
This does not work
u <- socketConnection('localhost',9000)
Error in socketConnection("localhost", 9000, blocking = F) :
cannot open the connection
In addition: Warning message:
In socketConnection("localhost", 9000, blocking = F) :
localhost:9000 cannot be opened
I have confirmed that something is indeed listening on the other side.
Any help would be appreciated.
Regards
Saptarshi
More information about the R-help
mailing list