String ipAddress = new String (pktIn.getData(),0,pktIn.getLength());
what the mean of this sentence??
NPDA 0
Light Poster
Recommended Answers
Jump to Posti put that to the google, but nothing
really I do't know, nothin with ipv4/ipv6, maybe someone knows
but today is still Fri 13th.
Jump to PostIt's just constructing a string "ipAddress" from the bytes in the packet using this String constructor: String(byte[] bytes, int offset, int length)
All 6 Replies
mKorbel 274
Veteran Poster
NormR1 563
Posting Sage Team Colleague
NPDA 0
Light Poster
NPDA 0
Light Poster
Ezzaral 2,714
Posting Sage Team Colleague Featured Poster
NPDA 0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.