DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35920>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35920 ------- Additional Comments From [EMAIL PROTECTED] 2005-07-28 22:12 ------- It looks like the Datagram always has buffer for 1000 Bytes. The IP itself has constant length (4 Bytes), the name (containing the IP as a string) has variable length, but the length is passed as part of the datagram. So no bug to be seen here. I tried with two different length IPs - no problem. If the third line of this: int dlen = XByteBuffer.toInt(dlend, 0); byte[] domaind = new byte[dlen]; System.arraycopy(data, nlen + 24, domaind, 0, domaind.length); is where it happens, can you debug by a print statement giving: data.getLength() XByteBuffer.toLong(alived, 0)) XByteBuffer.toInt(portd, 0), addressToString(addr), nlen, new String(named), dlen, and for i=0...dlen-1 data[nlen + 24 + i] That way you can see, if you received the data which is expected, or where there might be something wrong. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]