We have an application which is periodically sending TCP messages at a defined rate(Using MODBUS TCP). If a message is not received within a set period an alarm is raised. However every once in a while there appears to be a delay in messages being received. Investigation has shown that this is associated with the ARP cache being refreshe...
I am developing a client in Flash and using http req/resp to communicate with the server. For a while the session works fine and then the connection is terminated by the server. I did a wireshark sniff at the server and the last message which it sends is a RST packet. Also it happens only when I'm using IE and the server and client are i...
Right now im working on a light cliente/server application written in C to check some problems with many computers sending data with TCP to a server through a switch.
I need to read some of the flow control variables, like for example the window size, number of retransmitted packets, etc.
In linux i do it with getsockopt, method i've...
I am trying to create a very basic little client server application, but I can only get it to work locally on my own machine.
Server code:
int d = 0;
try
{
for (AdministratorPort = 8000; d < 1; AdministratorPort++)
{
IPAddress ipAddress = IPAddress.Parse("220.101.27.107");
...
I'm trying to re-launch a WCF service that I killed earlier, but I'm getting an AddressAlreadyInUseException. The port it's attempting to use is 1819.
I ran netstat -nao from the command line, and have found there is a listening process on port 1819, that has a PID of 4840. I went into Process Explorer (from SysInternals) to try to ki...
I'd like to establish several TCP connections between computers behind a firewall.
The follow picture illustrates a simple network:
From the picture I'd like to establish 3 TCP connections:
A => 2
B => 2
C => 2
What are my options for establishing these TCP connections?
and
Can I do this without port forwarding?
...
I am working on an embedded TCP/IP4 stack and HTTP/SNMP/SMTP stuff.
It functionally works but I want to make it work faster on LAN.
Because of the Nagle's Algorithm and the delayed TCP-ACK,
The HTTP application seems to work slow even on LAN.
As can be seen on http://en.wikipedia.org/wiki/IPv4#Private_networks ,
There are 3 different Pr...
Hi there,
I am having performance issues with Vista when trying to connect with wsHttpBindings and NetNamedPipeBindings on Vista.
I'm having 4 WCF services where the first one connects to the second and the second one connect to two others.
The problem is when I run this setup on my Vista (64 bit) desktop the response times a really w...
Hi all,
I am trying to establish BIS Socket connection. I am able to establish BIS Http connection from my service provider.
I have downloaded one chat application that checks network types supported by my device/service plan which has following list:
1)BIS-Http : OK
2)BIS-SOCKET :OK
3)BES-HTTP : NA
4)BES-SOCKET : NA
5)TCP-HTTP : BAD D...
If I send two TCP messages, do I need to handle the case where the latter arrives before the former? Or is it guaranteed to arrive in the order I send it? I assume that this is not a Twisted-specific example, because it should conform to the TCP standard, but if anyone familiar with Twisted could provide a Twisted-specific answer for my ...
Hi,
i want to have both an Apache and a Game Server to be reachable on port 443 of the same IP address.
The game server connection is a normal TCP connection that is established when the client logs in and stays open until the client logs out, perhaps hours later.
At first I though about using mod_proxy in reversed mode and let the cl...
As simple as it gets - can two application on the same machine bind to the same port and ip address? Taking it a step further, can one app listen to requests coming from a certain ip and the other to another remote ip?
I know I can have one application that starts off two threads (or forks) to have similar behavior, but can two applicat...
From the JavaDoc for setSoTimeout
Enable/disable SO_TIMEOUT with the
specified timeout, in milliseconds.
With this option set to a non-zero
timeout, a read() call on the
InputStream associated with this
Socket will block for only this amount
of time. If the timeout expires, a
java.net.SocketTimeoutException is
raised,...
I am working on linux.
I have a HTTP client which requests some data from the HTTP server. The HTTP client is written in C and HTTP server is written in perl.
I want to simulate TCP re-transmission timeouts at the client end.
I assume that closing the socket gracefully would not result in client to re-transmit the requests.
So I trie...
I have a client tcp socket (in c++) that has a loop where it retries to open a socket and connect to a server at a certain interval until it succeeds.
A bug in the program caused close not to be called on the file descriptor after a failed connect, and the same (open) descriptor was used again when calling socket and connect in the next...
I’m trying to write a custom TCP based long polling server that will serve as a go-between for other TCP connections that require more persistence than a mobile phone can provide.
The way I’m trying to do it is writing an asynchronous TCP server in C# and a matching TCP Client also written in C#.
The way that long polling works (as far...
Hi again!
I have a client and server program where I want to send an entire struct from the client and then output the struct member "ID" on the server.
I have done all the connecting etc and already managed to send a string through:
send(socket, string, string_size, 0);
So, is it possible to send a struct instead of a string throug...
I am interested in gathering some statistics from every TCP connection on a windows box for performance evaluation reasons. I see part of the API I need:
"The GetTcpTable2 function retrieves the IPv4 TCP connection table."
I could obviously poll this function to find new connections, but really what I would like to do is collect some...
I am using the reachability code from apple to find if my iphone is connected to the wifi. Next i would like to list all the devices that are in my wifi range. How should i do this. The other devices do not publish any service. I want to detect all devices in my wifi range and send that device a request for tcp connection.
...
Hi!
I have a server and a client program (both running on the same machine). The client is able to send a struct to the server with members such as "ID", "size" etc. Then I would like the server to send the ID-member (just an integer) back to the client as an ACK for validation, but I just can't figure this out despite being able to sen...