I have been doing some Java socket programming. My applets are 'talking' to C and VB6 apps. I am sending & receiving structs (or UDTs) of mixed data types so I have been using the DataOutputStream and DataInputStream classes. I could send you an example if this will meet your needs.
BTW, if you will be doing this in an applet it will have to be signed and, to be quite honest, I have had an awful time getting a signed copy of my jar files to not throw a security exception when attempting to connect to another address. I've followed the steps and browsed through the posts in the 10 steps thread in the Sun Developers Forums several times. As far as I can see, everything looks okay, but I can't get past the security exception. Judging from the number of posts in the thread, It seems to be a problem for a lot of people. Not sure why
If anyone has successfully signed an applet, I would love to hear from you. I have a web based project which must talk to a lot of different systems and is currently in limbo until I can resolve this problem.
Originally posted by Rue Thanks for your information , i wasnt wanting to do the network stuff with an applet more of a stand alone program.
im wanting to get the program thats posted above running first
In that case, you won't have to worry about the security issues. Java applications don't have the same restrictions as applets. However, the socket coding will be the same in both. So if you are still interested in that, let me know.
I only took a quick look at your upload so I can't add anything at the moment. I'll try to take a look at it later.
yeh if uv got any information or samples that would be great, im looking at doing it in java or Vb.NET so any info on how java works with sockets would be great.