Lines Matching refs:transport
27 #include "transport.h"
31 static jdwpTransportEnv *transport;
36 * data structure used for passing transport info from thread to thread
40 jdwpTransportEnv *transport;
48 * Print the last transport error
73 ERROR_MESSAGE(("transport error %d: %s",err, utf8msg));
75 ERROR_MESSAGE(("transport error %d: %s",err, utf8msg));
77 ERROR_MESSAGE(("transport error %d: %s",err, "UNKNOWN"));
98 /* Load transport library (directory=="" means do system search) */
124 /* dlopen (unix) / LoadLibrary (windows) the transport library */
148 * dt_socket and dt_shmem transport libraries, or any library
165 * We should only reach here if the transport library wasn't found
166 * in the J2SE directory, e.g. it's a custom transport library
178 ERROR_MESSAGE(("transport library not found: %s", name));
185 ERROR_MESSAGE(("transport library missing onLoad entry: %s", name));
189 /* Get transport interface */
205 ERROR_MESSAGE(("transport doesn't recognize version %x",
210 ERROR_MESSAGE(("transport doesn't support multiple environments"));
214 ERROR_MESSAGE(("unrecognized error %d from transport", ver));
240 /* Are we the first transport to get a connection? */
242 if (transport == NULL) {
243 transport = t;
246 if (transport == t) {
247 /* connected with the same transport as before */
251 * Another transport got a connection - multiple transports
272 * Set the transport property (sun.jdwp.listenerAddress) to the
295 while (transport == NULL) {
312 t = info->transport;
346 transport = NULL;
347 listenerLock = debugMonitorCreate("JDWP Transport Listener Monitor");
348 sendLock = debugMonitorCreate("JDWP Transport Send Monitor");
355 * Reset the transport by closing any listener (will silently fail
362 * from the current transport to the new transport.
364 if (transport != NULL) {
366 (*transport)->StopListening(transport);
367 (*transport)->Close(transport);
423 * If the transport is already loaded then use it
426 * where the transport library only supports a single environment.
427 * That probably means we have a bag a transport environments
430 if (transport != NULL) {
431 trans = transport;
469 info->transport = trans;
490 (void)strcpy(threadName, "JDWP Transport Listener: ");
508 TTY_MESSAGE(("Listening for transport %s at address: %s",
537 * Start the transport loop in a separate thread
539 (void)strcpy(threadName, "JDWP Transport Listener: ");
552 if ( transport != NULL ) {
553 (*transport)->Close(transport);
562 if ( transport != NULL ) {
563 is_open = (*transport)->IsOpen(transport);
574 if (transport != NULL) {
575 if ( (*transport)->IsOpen(transport) ) {
577 err = (*transport)->WritePacket(transport, packet);
581 if ((*transport)->IsOpen(transport)) {
582 printLastError(transport, err);
602 err = (*transport)->ReadPacket(transport, packet);
605 * If transport has been closed return EOF
607 if (!(*transport)->IsOpen(transport)) {
612 printLastError(transport, err);