Displaying 1 result from an estimated 1 matches for "sockpoint".
Did you mean:
seekpoint
2012 Apr 04
1
read.socket utils package : somthing is going wrong
...open socket connection
socketPointer<-make.socket(host='localhost',port=5333,fail=TRUE,server=FALSE)
#send the command line
write.socket(socket=socketPointer,string=msg2)
#read data
read.socket(socket=socketPointer,maxlen=252,loop=FALSE)
#send command to unsuscribe
write.socket(socket=sockPointer,string=unsub)
#close socket
close.socket(sockPointer)
The code remain stick on read.socket function, so I decided to use debug
functionality:
This is the read.socket source:
debugging in: read.socket(socket = s.p, maxlen = 252, loop = FALSE)
debug: {
if (length(port <- as.integer(socket...