I totally love the way Fiddler neatly reduces a flood of HTTP information to just the stuff I want to see.
I was wondering whether there is a utility out there that does the same for socket operations and calls? WireShark/Etherial is great, but the flood of data makes it difficult to easily understand what is going on?
Is there someth...
I have tracked down a deadlock in some code of mine using this reproducer:
if( isClient )
{
Sender sender;
Receiver receiver;
ConnectionPtr connection = Connection::create( description );
TEST( connection->connect( ));
receiver.start();
Sleep( 100 );
sender.start();
sender.join();
}
else
{
Connectio...
I have a winform app and i would like to listen to a specific port and be able to visit the app through a browser. I know how to use HttpRequest and HttpResponse in asp.net project. But is there a way to use them in a winform app? or a variant of them? Currently i am using TcpListener and i need to write out my response and parse the req...
Is there any way to determine if a tcp port is available in Cocoa? Thanks!
...
Okay, I'll try to make this as straight forward as possible. I'm using VB.Net in VS2010, I'm attempting to self-host a WCF service. (It's actually in a windows service, but I'm trying to do this via a simple console app. Below is the code in question, the TCP/IP addresses are injected directly here. The WCF service itself is simply a ...
I'm learning socket programming in C & downloaded a simple tcp server source file. I understand every line except the 2nd parameters in these functions:
accept(socket_fd, (struct sockaddr *)&client, &length);
bind(socket_fd, (struct sockaddr *)&server, length);
The accept + bind functions are the typical functions in "sys/types.h" & ...
I wish to develop a client-server application in .NET that functions as follows:
Clients connect to a central server. The server needs to keep track of which clients are connecting, and it must allow only those it knows (I have a repository of allowed clients). This is because in my application, it's critical to know who all are presen...
Hi
I understand the basics of how ports work. However, what I don't get is how multiple clients can simultaneously connect to say port 80. I know each client has a unique (for their machine) port. Does the server reply back from an available port to the client, and simply state the reply came from 80? How does this work?
...
I'm using TCP keepalive on the server side to keep the connection alive, and notify the server if the client dies. How can I configure jQuery.get() to disconnect the connection after a certain period of idle time?
Edit - I would like to consider "idle time" as time where no TCP packets are exchanged. Since the Server has TCP keepalive, ...
Hi folks,
I am working on getting the performance parameters of a tcp connection and one these parameters is the bandwidth. I am intending to use the tcp_info structure supported from linux 2.6 onwards, which holds the meta data about a tcp connection. The information can be retrieved using the getsockopt() function call on tcp_info. I h...
we have an application requirement where we'll be receiving messages from around 5-10 clients at a rate of 500KB/sec and doing some internal logic then distrubuting the received messages among 30-35 other network entities.
What all the tcp level or thread level optimizations are suggested ?
...
I have a TCP client/server application.
1) server is listening on a port
2) client send request and server accept the connection
3) send receive operation performed
4) server tries to disconnect the connection (first Shutdown then Close)
5) connection state changed to TIME_WAIT
6) the next time client open another socket but sending do...
i'm developing application that is listening to the data coming to the pc and store it in a db
when i'm trying to use any sniffing software it decode the data and i can read it...
but in my code ....i cant read it at all
it come in a format like that
182226215162234181711881551821161612152094113192157204151991232141301822451045348206...
Hi
I need a sample application of the following scenario
1) IOCP TCP Server capable of accepting request
2) client make request and send receive operation
3) SERVER close the connection
4) client open another socket for connection and do send receive operation
With this example i want to see how a client can open a connection and after ...
Hi,
I have a Django application which sometimes needs to send some data through TCP and I want this connection to be persistant.
The way I wanted to do it was to create a simple Twisted TCP server (I'm the one who will be waiting for the initial connection) and somehow call it from a Django view whenever I would be needing it.
How s...
I'm making a TCP Client in Applet mode and I get this strange error...
C:\Users\Dan\Documents\DanJavaGen\ClientApplet.java:20: cannot find symbol
symbol : method printStrackTrace()
location: class java.lang.Exception
e.printStrackTrace();
^
1 error
Tool completed with exit code 1
teh code:
import java.io.*;
import java.applet.Appl...
I am writing a game server for a turn-based game in Java.
These are the facts:
The speed of the game is slow, so clients need to send data let's say every 8 seconds, and that data is most of the time only a small incremental update (a few dozen bytes), aside from situations like join of the game or list available games etc.
The server ...
I have 2 machines on a 100 Gb/s LAN which talk to each other over TCP.
When I do a tracert or a ping from the client to the server, even a large ping, I get an answer in less then 1 ms.
However, when I'm sniffing the TCP packets on the client side, I see that 40ms pass between the time it sends the first message of the 3-way handshake, t...
After we do a send(), the error that comes back is EWOULDBLOCK, so then we do a select() with a timeval structure with tv_sec = tv_usec = 0 which should return back immediately, but it doesn't, we are stuck in the select() call, and people have said that have waited over 2 mins, with it still being blocked in the select() call.
This is...
I have a client that sends a class object to the server. The server should invoke the methods of that class and return the result.
I am getting the following exception java.lang.ClassNotFoundException: newclient.TestObject when I run my program.
server.java:
package newserve;
import java.net.*;
import java.io.*;
import java.lang.refl...