MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / value

Method value

src/main/java/core/org/xbill/DNS/WKSRecord.java:217–220  ·  view source on GitHub ↗

Converts a textual representation of an IP protocol into its numeric code. Integers in the range 0..255 are also accepted. @param s The textual representation of the protocol @return The protocol code, or -1 on error.

(String s)

Source from the content-addressed store, hash-verified

215 * @return The protocol code, or -1 on error.
216 */
217 public static int
218 value(String s) {
219 return protocols.getValue(s);
220 }
221}
222
223public static class Service {

Callers 1

rdataFromStringMethod · 0.95

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected