[3715] in java-interest

home help back first fref pref prev next nref lref last post

Connecting to a server

daemon@ATHENA.MIT.EDU (Mike Afergan)
Wed Nov 22 22:08:52 1995

Date: Wed, 22 Nov 95 20:09:57 EST
To: java-interest@java.sun.com
From: Mike Afergan <mikea@abba.ai.mit.edu>

  Should this code work?  I know that it compliles, but it doesn't seem to
make the connection.  Why not?  (It may be a server problem, but I doubt it.)

  -- Mike

-----		
Note that this code is from the init() method of an applet.

                resize(500,500);
		this.testin = new String();
		host = new InetAddress("funny.foo.edu");  //name changed to
//protect the innocent

		try {
			this.mc = new Socket(true);
			} catch (Exception e) {
				stop();
				}
		try {
			mc.connect(host,1501);

			} catch (Exception e) {
				open = false;
				}
		}


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post