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)
| 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 | } |
| 577 | private byte [] address; |
| 578 | private int protocol; |
no test coverage detected