/external/clang/test/Analysis/ |
ptr-arith.c | 27 int port = 0; local 33 port = 10 * port + (*p - '0'); 34 return port;
|
/external/guava/guava/src/com/google/common/net/ |
HostAndPort.java | 34 * An immutable representation of a host and port. 58 * concerned with brackets, colons, and port numbers. Full validation of the 68 /** Magic value indicating the absence of a port number. */ 74 /** Validated port number in the range [0..65535], or NO_PORT */ 75 private final int port; field in class:HostAndPort 80 private HostAndPort(String host, int port, boolean hasBracketlessColons) { 82 this.port = port; 97 /** Return true if this instance has a defined port. */ 99 return port >= 0 134 checkArgument(isValidPort(port), "Port out of range: %s", port); local 190 int port = NO_PORT; local [all...] |
/external/ipsec-tools/src/racoon/ |
admin.c | 410 u_int16_t port; local 423 /* get remote IP address and port number. */ 427 port = extract_port(rmconf->remote); 428 if (set_port(remote, port) == NULL) 435 port = getmyaddrsport(local); 436 if (set_port(local, port) == NULL)
|
/external/iptables/extensions/ |
libip6t_DNAT.c | 32 " --to-destination [<ipaddr>[-<ipaddr>]][:port[-port]]\n" 59 /* Lets assume one colon is port information. Otherwise its an IPv6 address */ 76 int port; local 80 "Need TCP, UDP, SCTP or DCCP with port specification"); 84 port = atoi(colon+1); 85 if (port <= 0 || port > 65535) 87 "Port `%s' not valid\n", colon+1); 92 "Invalid port:port syntax - use dash\n") [all...] |
libip6t_SNAT.c | 32 " --to-source [<ipaddr>[-<ipaddr>]][:port[-port]]\n" 59 /* Lets assume one colon is port information. Otherwise its an IPv6 address */ 76 int port; local 80 "Need TCP, UDP, SCTP or DCCP with port specification"); 84 port = atoi(colon+1); 85 if (port <= 0 || port > 65535) 87 "Port `%s' not valid\n", colon+1); 92 "Invalid port:port syntax - use dash\n") [all...] |
libipt_DNAT.c | 33 " --to-destination [<ipaddr>[-<ipaddr>]][:port[-port]]\n" 80 int port; local 84 "Need TCP, UDP, SCTP or DCCP with port specification"); 88 port = atoi(colon+1); 89 if (port <= 0 || port > 65535) 91 "Port `%s' not valid\n", colon+1); 96 "Invalid port:port syntax - use dash\n") [all...] |
libipt_SNAT.c | 33 " --to-source [<ipaddr>[-<ipaddr>]][:port[-port]]\n" 80 int port; local 84 "Need TCP, UDP, SCTP or DCCP with port specification"); 88 port = atoi(colon+1); 89 if (port <= 0 || port > 65535) 91 "Port `%s' not valid\n", colon+1); 96 "Invalid port:port syntax - use dash\n") [all...] |
/external/javassist/src/main/javassist/tools/web/ |
Viewer.java | 30 * <ul><code>% java javassist.tools.web.Viewer <i>host port</i> Main arg1, ...</code></ul> 34 * a server http://<i>host</i>:<i>port</i>. 46 * String port = v.getPort(); 52 private int port; field in class:Viewer 66 "Usage: java javassist.tools.web.Viewer <host> <port> class [args ...]"); 73 * @param p port number 77 port = p; 86 * Returns the port number. 88 public int getPort() { return port; } 163 URL url = new URL("http", server, port, [all...] |
/external/kernel-headers/original/uapi/linux/ |
b1lli.h | 47 int port; member in struct:avmb1_carddef 57 int port; member in struct:avmb1_extcarddef
|
/external/libvncserver/x11vnc/ |
avahi.c | 40 void avahi_advertise(char *name, char *host, uint16_t port); 54 static int try_avahi_helper(char *name, char *host, uint16_t port) { 59 if (!name || !host || !port) {} 72 sprintf(portstr, "%d", (int) port); 140 if (!name || !host || !port) {} 150 void avahi_advertise(char *name, char *host, uint16_t port) { 154 t = getenv("X11VNC_AVAHI_PORT"); if (t) port = atoi(t); 156 if (!try_avahi_helper(name, host, port)) { 191 uint16_t port; member in struct:__anon13571 197 uint16_t port; member in struct:__anon13572 [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/fake/example/ |
RemoteFileTest.java | 59 fakeFtpServer.setServerControlPort(0); // use any free port
69 int port = fakeFtpServer.getServerControlPort();
local 73 remoteFile.setPort(port);
|
/external/nist-sip/java/gov/nist/core/ |
HostNameParser.java | 255 * Parses a host:port string 268 // Has a port? 269 if (allowWS) lexer.SPorHT(); // white space before ":port" should be accepted 276 if (allowWS) lexer.SPorHT(); // white space before port number should be accepted 278 String port = lexer.number(); local 279 hp.setPort(Integer.parseInt(port)); 282 lexer.getBuffer() + " :Error parsing port ",
|
/external/nist-sip/java/gov/nist/javax/sip/ |
ListeningPointImpl.java | 62 /** My port. (same thing as in the message processor) */ 64 int port; field in class:ListeningPointImpl 87 * @param port port 91 public static String makeKey(String host, int port, String transport) { 94 .append(port) 106 return makeKey(this.getIPAddress(), port, transport); 130 int port, 134 this.port = port; 228 int port = this.getPort(); local [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
DefaultRouter.java | 119 // The outbound proxy is optional. If specified it should be host:port/transport. 123 "Invalid default route specification - need host:port/transport"); 132 * a host, the host and port information are extracted from it and made the 301 int port; local 303 port = sipUri.getPort(); 306 port = 5061; 308 port = 5060; // TCP or UDP 314 .resolveAddress(new HopImpl(host, port, transport));
|
/external/tcpdump/missing/ |
getnameinfo.c | 112 u_short port; local 140 port = ((struct sockinet *)sa)->si_port; /* network byte order */ 154 sp = getservbyport(port, 162 snprintf(numserv, sizeof(numserv), "%d", ntohs(port));
|
/external/valgrind/auxprogs/ |
valgrind-listener.c | 191 /* returns 0 if invalid, else port # */ 208 " valgrind-listener [--exit-at-zero|-e] [--max-connect=INT] [port-number]\n" 218 " port-number is the default port on which to listen for\n" 259 int port = VG_CLO_DEFAULT_LOGPORT; local 273 port = atoi_portno(argv[i]); 312 /* bind server port */ 315 server_addr.sin_port = htons(port); 319 perror("cannot bind port "); 320 panic("main -- bind port"); [all...] |
/external/wpa_supplicant_8/src/radius/ |
radius_client.h | 34 * port - radiusAuthClientServerPortNumber or radiusAccClientServerPortNumber 36 int port; member in struct:hostapd_radius_server
|
radius_das.h | 41 int port; member in struct:radius_das_conf
|
/external/wpa_supplicant_8/src/wps/ |
http_client.c | 196 char *u, *addr, *port, *path; local 206 port = os_strchr(addr, ':'); 211 if (port > path) 212 port = NULL; 214 if (port) 215 *port++ = '\0'; 220 "(addr='%s' port='%s')", 221 url, addr, port); 226 if (port) 227 dst->sin_port = htons(atoi(port)); [all...] |
/frameworks/av/media/libmedia/ |
IHDCP.cpp | 73 virtual status_t initAsync(const char *host, unsigned port) { 77 data.writeInt32(port); 219 unsigned port = data.readInt32(); local 221 reply->writeInt32(initAsync(host, port));
|
/frameworks/av/media/libstagefright/rtsp/ |
ARTPSession.cpp | 65 unsigned port; local 66 if (!validateMediaFormat(i, &port) || (port & 1) != 0) { 77 int rtpSocket = MakeUDPSocket(port); 78 int rtcpSocket = MakeUDPSocket(port + 1); 100 int ARTPSession::MakeUDPSocket(unsigned port) { 108 addr.sin_port = htons(port); 198 bool ARTPSession::validateMediaFormat(size_t index, unsigned *port) const { 228 *port = x;
|
/frameworks/base/core/java/android/net/ |
WebAddress.java | 40 * If given an https scheme but no port, fills in port 64 /* port */ "(?:\\:([0-9]*))?" + 97 throw new ParseException("Bad port"); 116 /* Get port from scheme or scheme from port, if necessary and 131 String port = ""; local 134 port = ":" + Integer.toString(mPort); 141 return mScheme + "://" + authInfo + mHost + port + mPath; 165 public void setPort(int port) { [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
WebAsset.java | 28 * <p>A web asset can be named by its protocol, domain, and port using this JSON string: 30 * "site": "[protocol]://[fully-qualified domain]{:[optional port]}" } 36 * <p>The only protocol supported now are https and http. If the optional port is not specified, 47 int port = url.getPort() != -1 ? url.getPort() : url.getDefaultPort(); local 49 mUrl = new URL(url.getProtocol().toLowerCase(), url.getHost().toLowerCase(), port, ""); 146 "Site should only have scheme, domain, and port.");
|
/libcore/benchmarks/src/benchmarks/regression/ |
SSLSocketBenchmark.java | 44 final int port; field in class:SSLSocketBenchmark.WebSite 55 this.port = 443; 58 this.port = p; 59 portString = ":" + port; 82 Socket s = sf.createSocket(webSite.host, webSite.port);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
InetSocketAddressTest.java | 50 legalHostPortPairs[i].host, legalHostPortPairs[i].port); 54 assertEquals(isa.getPort(), legalHostPortPairs[i].port); 68 illegalHostPortPairs[i].port); 70 + illegalHostPortPairs[i].host + ",port = " 71 + illegalHostPortPairs[i].port); 84 int port; field in class:InetSocketAddressTest.HostPortPair 86 public HostPortPair(String host, int port) { 88 this.port = port; 103 assertEquals("Port", init.getPort(), desr.getPort()) [all...] |