Hello, I have to write single Long to a server written in java. The server passes the input as in.readLong() // it expects to receive 8 bytes
In Python, i can do it by sending struct.pack( "!q", value) However, I have tried this writeBin(length(x),con=conn,endian="big") #conn opened in binary But the response on the server side is wrong, eg. 1 is received as 4294967297 How do I then write long across the network from R? Thank you Saptarshi Saptarshi Guha | saptarshi.g...@gmail.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org 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.