I am trying to create socket connection in R.
socket <- make.socket("localhost",2099,T,T)
msg2<-'function=subscribe|item=MI.EQCON.1|schema=last_price;ask;bid'
write.socket(socket,msg2)
read.socket(socket,252,FALSE)
When I run the read.socket line, I get error:
Error in read.socket(socket, 252, FALSE) :
embedded nul in string:
'þþ-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\001\0\004\0CTCL\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
I am Unable to solve this problem. Please advice how to get rid of this
issue.
Regards,
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.