Re: Sockets class question - sending TCP data



D. Patrick wrote:
I need to duplicate the functionality of a java applet, and how it connects
to a remote server. But, I don't have the protocol information or the java
source code which was written years ago. So, I used a packet sniffer and
saw the protocol (TCP), the port, IP address, etc. All is good. I tried 2
different versions of .NET code to duplicate the requests to the remote
server. Again, I used the packet sniffer and my packets seemed identical to
those coming from the java program. The problem is that the java program
gets responses back from the remote server, but my code doesn't. It is not
a listening problem, because I am determing the responses by looking at the
packet sniffer. I've tried 2 completely different bits of code, written
differently, and the problem is the same. Again, the transmit side looks
identical to the java program, and so I can't begin to understand why the
responses from the remote server shouldn't be identical. I mean if I send X
to the server, and the java code sends X, the remote server shouldn't be
able to tell whether it is my code or the java code, right?

Any thoughts? Anyone seen anything like this before where transmits are
good but responses are non-existing or empty? Is there some special switch
or something that makes the packets different on the outbound side in a way
a packet sniffer wouldn't notice.

You can always decompile the Java class files with some luck and try to find the routines used.

http://members.fortunecity.com/neshkov/dj.html

Jesse
.



Relevant Pages

  • Re: Sockets class question - sending TCP data
    ... I am trying to duplicate the functionality of a java applet, ... .NET control embedded in IE, or are you doing this in a local stand-alone ... I used the packet sniffer and my packets seemed identical ... gets responses back from the remote server, ...
    (microsoft.public.dotnet.languages.csharp)
  • using Sockets class -- not getting responses
    ... I need to duplicate the functionality of a java applet, ... I used the packet sniffer and my packets seemed identical to ... gets responses back from the remote server, ...
    (microsoft.public.dotnet.languages.vb)
  • Sockets class question - sending TCP data
    ... I need to duplicate the functionality of a java applet, ... I used the packet sniffer and my packets seemed identical to ... gets responses back from the remote server, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sockets class question - sending TCP data
    ... I used the packet sniffer and my packets seemed identical ... those coming from the java program. ... gets responses back from the remote server, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sockets class question - sending TCP data
    ... You say that you did this in a Java applet. ... I used the packet sniffer and my packets seemed identical ... gets responses back from the remote server, ...
    (microsoft.public.dotnet.languages.csharp)

Quantcast