equal
deleted
inserted
replaced
128 |
128 |
129 /* |
129 /* |
130 * Return the last error for this thread (may be NULL) |
130 * Return the last error for this thread (may be NULL) |
131 */ |
131 */ |
132 static char* |
132 static char* |
133 getLastError() { |
133 getLastError(void) { |
134 return (char *)dbgsysTlsGet(tlsIndex); |
134 return (char *)dbgsysTlsGet(tlsIndex); |
135 } |
135 } |
136 |
136 |
137 /* Set options common to client and server sides */ |
137 /* Set options common to client and server sides */ |
138 static jdwpTransportError |
138 static jdwpTransportError |
221 } |
221 } |
222 return JDWPTRANSPORT_ERROR_NONE; |
222 return JDWPTRANSPORT_ERROR_NONE; |
223 } |
223 } |
224 |
224 |
225 static uint32_t |
225 static uint32_t |
226 getLocalHostAddress() { |
226 getLocalHostAddress(void) { |
227 // Simple routine to guess localhost address. |
227 // Simple routine to guess localhost address. |
228 // it looks up "localhost" and returns 127.0.0.1 if lookup |
228 // it looks up "localhost" and returns 127.0.0.1 if lookup |
229 // fails. |
229 // fails. |
230 struct addrinfo hints, *res = NULL; |
230 struct addrinfo hints, *res = NULL; |
231 uint32_t addr; |
231 uint32_t addr; |