Displaying 1 result from an estimated 1 matches for "socketpoint".
Did you mean:
socketpointer
2012 Apr 04
1
read.socket utils package : somthing is going wrong
...m:
#outcome=OK|item=MI.EQCON.2552
#Update stream:
#MI.EQCON.1|21|10|22|11|23|12|24|5|20|19|7.5
#MI.EQCON.2552|||||||||||7.3
#..................................................
#until the buffer is full.
msg2<-'function=subscribe|item=MI.EQCON.1|schema=ask1;bid1'
#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...