Lines Matching defs:connection
40 static SharedMemoryConnection *connection = NULL; /* maximum of 1 connection */
126 int rv = shmemBase_receiveByte(connection, &b);
136 int rv = shmemBase_sendByte(connection, (jbyte)hello[i]);
172 if (connection != NULL || transport != NULL) {
206 if (connection != NULL) {
213 rc = shmemBase_accept(transport, (long)acceptTimeout, &connection);
216 RETURN_ERROR(JDWPTRANSPORT_ERROR_TIMEOUT, "Timed out waiting for connection");
218 RETURN_IO_ERROR("failed to accept shared memory connection");
224 shmemBase_closeConnection(connection);
225 connection = NULL;
245 if (connection != NULL) {
248 rc = shmemBase_attach(address, (long)attachTimeout, &connection);
256 RETURN_IO_ERROR("failed to attach to shared memory connection");
261 shmemBase_closeConnection(connection);
262 connection = NULL;
276 if (connection == NULL) {
279 if (shmemBase_sendPacket(connection, packet) == SYS_OK) {
292 if (connection == NULL) {
295 if (shmemBase_receivePacket(connection, packet) == SYS_OK) {
305 if (connection != NULL) {
315 SharedMemoryConnection* current_connection = connection;
317 connection = NULL;