How to parse Ip and port from http tracker response
问题 I am sending a request to a tracker and get a response d8:completei2e10:downloadedi1e10:incompletei1e8:intervali1971e12:min intervali985e5:peers18:\235'\027\253\000\000\331e57\374-\033"\022,\270\302e How to get Peers list or peer IP and port from this response 回答1: The response from the tracker is bencoded . Adding some whitespace for clarity: d 8:complete i2e 10:downloaded i1e 10:incomplete i1e 8:interval i1971e 12:min interval i985e 5:peers 18:\235'\027\253\000\000\331e57\374-\033"\022,\270