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

Method value

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

Converts a textual representation of a TCP/UDP service into its port number. Integers in the range 0..65535 are also accepted. @param s The textual representation of the service. @return The port number, or -1 on error.

(String s)

Source from the content-addressed store, hash-verified

570 * @return The port number, or -1 on error.
571 */
572 public static int
573 value(String s) {
574 return services.getValue(s);
575 }
576}
577private byte [] address;
578private int protocol;

Callers 1

rdataFromStringMethod · 0.95

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected