I'm creating a ruby server which is connecting to a TCP client. My server is using a TCPServer and I'm attempting to use TCPServer::recv(), but it doesn't wait for data, so just continues in a tight loop until data is received.
What is the most efficient way to process intermittant data? I'm unable to change the data being sent in sin...
I want to put together simple TCP server using Python and Twisted.
The server starts up and waits for connection - I already have client - non-python application. Once connection is made server starts sending data at some interval (e.g. 1 sec).
The server reads data from a static file (a record at a time), I should be able to figure ou...
I have written a TCP server implementation using which I created an application which works as TCP echo service.
Now I want to test this echo server in terms of
How many connections it can handle
What is the response time
How much memory and CPU it uses
Please can you suggest any standard method/tools to test this echo server. I und...
I've got a TCP server written in C# that processes POST data sent to it. Currently it works fine unless a large amount of data (i.e. greater than 1GB) is sent to it then it runs out of memory (I store it all in memory as an array of bytes (with a intermediary of a List DTO)). For large files now I stream down to disk and then pass the fi...
How can I specify which adaptor to begin listening on?
I have an application running on a PC which happens to have 2 network adaptors running on different subnets (one network for Business LAN infrastructure, one for TCP cameras)
I have a class which opens up a TCP server and listens on a specific port for connections coming in from cl...
As a follow-up to cannot-bind-to-address-after-socket-program-crashes, I was receiving this error after my program was restarted:
socket.error: [Errno 98] Address already in use
In this particular case, instead of using a socket directly, the program is starting its own threaded TCP server:
httpd = SocketServer.ThreadingTCPServer(...
Maybe I've gotten my sockets programming way mixed up, but shouldn't something like this work?
srv = TCPServer.open(3333)
client = srv.accept
data = ""
while (tmp = client.recv(10))
data += tmp
end
I've tried pretty much every other method of "getting" data from the client TCPSocket, but all of them hang and never break out of th...
I have written a code for TCP echo server code in C i.e. whatever I receive I have to send it back. I am also successful in doing so but I am facing a problem. Sometimes the packets that are received are not echoed back. For this I have introduced a delay after receiving and the no. of failures reduced but the problem still exists.
Can s...
Hi,
I want my web server to notify me through a php page when an event occurs at another TCP server, to which the PHP page has successfully connected via a socket. The event is like the TCP server wants to send a message to the web server, etc. Is there any way to accomplish this and/or any references on how to do it?
Thank You!
...
Hi,
I have a TCP server, which is connected to a web page via a Web browser. It is easy to send a request to the TCP server by the web page via the Web Browser, but is there a way that TCP server can push data to the web browser, without waiting for a request from browser side?? My initial idea was that this is impossible, since a brows...
Hi,
I setup a proxy server in my local machine for a testing purpose, in which I request for a web page which is constantly being updated via a back end TCP server. But since the proxy is caching the web page, it is not being updated properly. Instead I get the cached page. Is there a way to bypass the proxy server other than adjusting...
Hello,
I'm recieving an error ECONNABORTED, and i really can't figure out, what is the cause of it. The IBM guide suggests that it is because of a timeout, but that doesn't ring the bell for me. I don't know where to start so here are few questions.
a) accept() is the only thing needed to establish a connection - i mean no other functi...