/*
 * JSNPP - Java SNPP API.
 * Copyright (C) 2005  Don Seiler <don@seiler.us>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

package jsnpp;

import jsnpp.Message;
import java.io.IOException;
import java.net.UnknownHostException;

public class SNPPExample {

	public static void main(String[] args) {
		Message m = new Message("test.mysnppserver.com", 444, "don", "don", "The system is DOWN.");
		try {
			m.send();
		} catch (UnknownHostException e) {
			System.err.println("Unknown host: " + e.getMessage());
		} catch (IOException e) {
			System.err.println("IO error: " + e.getMessage());
		} catch (Exception e) {
			System.err.println("Error sending message: " + e.getMessage());
		}
	}
}

@@ -1054,23 +1054,16 @@
 , %22don%22,
- %22don%22,
  %22The sy

Update example to use a non-deprecated version of Message constructor