tini1.12 bug?
Wes Stupar <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
I am running TINI OS 1.12 with the following code:
InetAddress hisIA = sock.getInetAddress();
String rawIP = hisIA.toString();
String hisSt = rawIP.substring(0, rawIP.indexOf('/'));
/**/System.out.println("Connect address = " + hisSt);
hisIP = TININet.stringToIP(new String(hisSt));
/**/System.out.println("Connect IP = " + IPstring(hisIP) +
", Ctl 0 = " + IPstring(Conf.Ctl0IP) + ", Ctl 1 = " +
IPstring(Conf.Ctl1IP));
I am trying to get the byte[4] version of the IPv4 address from the
socket (sock). I tried
hisIP = sock.getInetAddress().getAddress();
and that returned all zeros. So I tried the above and I still get all zeros:
Connect address = 192.9.200.103
Connect IP = 0.0.0.0, Ctl 0 = 192.9.100.125, Ctl 1 = 0.0.0.0
Is this a bug in tini1.12?
Wes Stupar
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini