4 * Class Conversions provides conversions between IPAddress
5 * and String and between NtpTime and String.
7 * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
8 * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
9 * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
10 * @author dedication to Kj
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
26 package org.ocera.orte.tools;
29 public class Conversions {
31 /** load native library 'libjorte.so' */
33 System.loadLibrary("jorte");
40 * IPAddressToString - converts and return IP address from number
41 * notation into its dot notation in string
43 * @param ipAddress source IP address in number notation
44 * @return IP address in string(dot) notation
47 String IPAddressToString(long ipAddress);
51 * StringToIPAddress - converts IP and returns address from dot notation
52 * -string into its number notation
54 * @param ipAddress source IP address in string(dot) notation
55 * @return IP address in number notation
58 long StringToIPAddress(String ipAddress);