I\'m benchmarking some simple HTTP server implementations in Ruby (no threads, threaded, fibers and eventmachine) but this simple piece of code fails using threads:
I am trying to pass a hex message from a C server to a Java client. The communication works. But the hex value that I get on Java client seems to be appended with \"ff\". Why is this happening?
We are writing a project where there is a client who generates xml requests, sends them to a server, who parses the request and returns the requested information i开发者_Go百科n an xml string.
Is there a way to find out how many bytes of data is available on an TCPSocket in Ruby? I.e. how many bytes can be ready with开发者_Go百科out blocking?The standard library io/wait might be useful here
HI folks, I\'m trying to establish connection to a remote server using ruby socket connection TcpSocket.
Maybe I\'ve gotten my sockets programming way mixed up, but shouldn\'t something like this work? srv = TCPServer.open(3333)
Hey guys, I don\'t know if this question has been asked yet but imagine following situation: I have two TCP-Sockets (opened with NSSocketPort und listening with two NSFileHandle) and now I want to se
So, I have the following code: def LSCPHandler.send_message(message, hostname, port) s = TCPSocket.open(hostname, port)