Displaying 1 result from an estimated 1 matches for "ask1".
Did you mean:
ask
2012 Apr 04
1
read.socket utils package : somthing is going wrong
...ould be a push stream like:
#First stream:
#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.s...