Lines Matching defs:port
27 * Utility class for parsing host and port values from command arguments.
35 * Parse the host address and port number of an extended address. This encoded format is used by
41 * @param parameter - the single parameter String containing the encoded host and port number
53 throw new CommandSyntaxException("Error parsing host and port number [" + parameter + "]");
56 int port = Integer.parseInt(tokens[3]);
66 return new HostAndPort(host, port);
70 * Parse a 32-bit IP address and 16-bit port number from the String[] of FTP command parameters.
74 * of a 32-bit internet host address and a 16-bit TCP port address. This address
77 * representation). Thus, the six parameters for the port command would be:
80 * high order 8 bits of the port number.
81 * @return the HostAndPort object with the host InetAddres and int port parsed from the parameters
105 int port = (port1 << 8) + port2;
107 return new HostAndPort(inetAddress, port);
111 * Convert the InetAddess and port number to a comma-delimited list of byte values,
115 * @param port - the port number
118 public static String convertHostAndPortToCommaDelimitedBytes(InetAddress host, int port) {
126 int p1 = port >> 8;
127 int p2 = port % 256;