Home | History | Annotate | Download | only in jdwp

Lines Matching defs:port

64 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe);
70 uint16_t port = options->port;
73 if (options->port != 0) {
74 /* try only the specified port */
75 state->netState = SocketStartup(state, port, false);
78 for (port = kBasePort; port <= kMaxPort; port++) {
79 state->netState = SocketStartup(state, port, true);
86 LOG(ERROR) << "JDWP net startup failed (req port=" << options->port << ")";
94 LOG(INFO) << "JDWP will wait for debugger on port " << port;
96 LOG(INFO) << "JDWP will " << (options->server ? "listen" : "connect") << " on port " << port;
105 * Allocates a new state structure. If "port" is non-zero, this also
106 * tries to bind to a listen port. If "port" is zero, we assume
110 * This may be called several times if we're probing for a port.
114 static JdwpSocketState* SocketStartup(JdwpState* state, uint16_t port, bool probe) {
116 if (port == 0) {
140 addr.addrInet.sin_port = htons(port);
144 PLOG(probe ? ERROR : FATAL) << "Attempt to bind to port " << port << " failed";
148 netState->listenPort = port;
170 * for an open port.)
270 CHECK_NE(options->port, 0);
297 addr.addrInet.sin_port = htons(options->port);
343 * bind to the same port again, which would confuse utilities.