Date: Tue, 06 Feb 1996 12:45:29 -0600 From: Bob Jamison Herr Back, Thank you very, very much for posting your Netscape "fix" on the Internet. Since version 2.0 is now out, I thought I'd let you have a copy of the C file I have used to patch moz2_0.zip: ===================== CUT HERE ==================== /**********************************************************************/ ** fix.c ** ** This is the "patch" file which enables arbitrary Java sockets in ** Netscape 2.0 by Godmar Back, to whom we owe a working Java browser. ** ** ***********************************************************************/ #include #include /************************** THESE WORK FOR BOB ******/ /* Linux moz2_0.zip:filesize 763601 0006c9d0 2a04b500 6bb12a05 b5006bb1 00000002 *...k.*...k..... change to: 06 06 */ #ifdef linux #define BEGIN (0x0006c9d0L+1L) #endif /* SunOS / SGI IRIX / Win95 moz2_0.zip:filesize 763745 0006c9d0: 9900092a 04b50047 b12a05b5 0047b100 ...*...G.*...G.. change to: 06 06 */ #if defined(sunos) || defined(solaris) || defined(SGI) || defined(win95) #define BEGIN (0x6c9d0L+4L) #endif /*********************************************************/ main() { FILE *f; unsigned char six; char *fname="moz2_0.zip"; unsigned long begin = BEGIN; six = 6; printf("Modifying at %ld %lx\n",begin,begin); f = fopen(fname,"r+"); if (!f) { printf("Could not open %s for modification\n",fname); return; } fseek(f,begin,0); fwrite(&six, 1,1,f); fseek(f,begin + 6,0); fwrite(&six, 1,1,f); fclose(f); printf("ok\n"); } =================END FILE================================== The files produced by the "defines" all seem to work well with 2.0. The modifications seem to occur usually in the same places, but the files ARE different. I wish you would try an applet of mine, a "chat" program which I have done entirely in Java, and which depends upon your patch to work. It can be found at: http://www.phoenix.net/~jalonso/applets/chat ... Several of my friends (we are all software developers) are now using your "fix," so I would also like to send their appreciation, also! Thanks! Bob ... -- ================================================================ = Bob Jamison 713-244-5769 = rjamison@gothamcity.jsc.nasa.gov = ================================================================