Code example for Socket

Methods: getLocalSocketAddress, isConnected

0
			return false; 
		} 
		 
		 
		// try opening socket even if it's not null. 
		if (socket.isConnected() != true) {
			openSocket(); 
		} 
 
		// Is the socket open? 
		if (socket.isConnected() != true) {
			if (DEBUG) msg("After opening socket, it was not connected.");
			return false; 
		} 
 
		if (DEBUG) msg("Successfully opened socket.");
		return true; 
	} 
 
	/** 
	 * Perform an internet based TCPIP lookup by sending the DTC to the GTO