tcpsocket
Simple TCPSocket server in Ruby exhibits a HTTP header issue
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:[详细]
2023-04-09 20:26 分类:问答Mangled Hex message via socket
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?[详细]
2023-03-03 06:54 分类:问答Sending an xml message in parts through a TCP socket using Qt
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.[详细]
2023-01-27 19:25 分类:问答Ruby TCPSocket: Find out how much data is available
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[详细]
2023-01-21 05:19 分类:问答ruby socket programming using credentials
HI folks, I\'m trying to establish connection to a remote server using ruby socket connection TcpSocket.[详细]
2022-12-28 03:11 分类:问答Ruby TCPServer sockets
Maybe I\'ve gotten my sockets programming way mixed up, but shouldn\'t something like this work? srv = TCPServer.open(3333)[详细]
2022-12-22 15:46 分类:问答Send more than 32768 Bytes at once from one TCP-Socket to an other
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[详细]
2022-12-19 08:11 分类:问答Ruby TCPSocket recv blocking and never returning
So, I have the following code: def LSCPHandler.send_message(message, hostname, port) s = TCPSocket.open(hostname, port)[详细]
2022-12-18 13:02 分类:问答