Re: Sockets class question - sending TCP data




"Jesse Houwing" <jesse.houwing@xxxxxxxxxxxxxxxx> wrote in message
news:uYtlmfVmGHA.3632@xxxxxxxxxxxxxxxxxxxxxxx
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

that's an interesting idea, thanks. I don't know java, even though I can
probably guess at some things. do you know of a converter from java to
csharp, by chance?


.



Relevant Pages

  • Re: Sockets class question - sending TCP data
    ... Have you looked at the actual TCP packets, that is, all of them, including ... etc. Compare the entire TCP packet binarily. ... You say that you did this in a Java applet. ... gets responses back from the remote server, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sockets class question - sending TCP data
    ... I am not sure what you mean by whether the packet sniffer parses the ... You say that you did this in a Java applet. ... 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)
  • Re: Sockets class question - sending TCP data
    ... I don't have the protocol information or the java ... I used the packet sniffer and my packets seemed identical to ... gets responses back from the remote server, ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)