Lines Matching refs:socketFD
42 static int socketFD = -1;
369 socketFD = dbgsysAccept(serverSocketFD,
373 if (socketFD < 0) {
385 if (socketFD < 0) {
390 err = handshake(socketFD, handshakeTimeout);
398 dbgsysSocketClose(socketFD);
399 socketFD = -1;
410 } while (socketFD < 0);
444 socketFD = dbgsysSocket(AF_INET, SOCK_STREAM, 0);
445 if (socketFD < 0) {
449 err = setOptions(socketFD);
459 dbgsysConfigureBlocking(socketFD, JNI_FALSE);
462 err = dbgsysConnect(socketFD, (struct sockaddr *)&sa, sizeof(sa));
464 err = dbgsysFinishConnect(socketFD, (long)attachTimeout);
467 dbgsysConfigureBlocking(socketFD, JNI_TRUE);
477 dbgsysConfigureBlocking(socketFD, JNI_TRUE);
480 err = handshake(socketFD, handshakeTimeout);
482 dbgsysSocketClose(socketFD);
483 socketFD = -1;
493 if (socketFD >= 0) {
503 int fd = socketFD;
504 socketFD = -1;
510 * close failed - it's pointless to restore socketFD here because
561 if (send_fully(socketFD, (char *)&header, HEADER_SIZE + data_len) !=
567 if (send_fully(socketFD, (char *)&header, HEADER_SIZE + MAX_DATA_SIZE) !=
572 if (send_fully(socketFD, (char *)data + MAX_DATA_SIZE,
624 n = recv_fully(socketFD, (char *)&length, sizeof(jint));
639 n = recv_fully(socketFD,(char *)&(packet->type.cmd.id),sizeof(jint));
646 n = recv_fully(socketFD,(char *)&(packet->type.cmd.flags),sizeof(jbyte));
652 n = recv_fully(socketFD,(char *)&(packet->type.reply.errorCode),sizeof(jbyte));
661 n = recv_fully(socketFD,(char *)&(packet->type.cmd.cmdSet),sizeof(jbyte));
666 n = recv_fully(socketFD,(char *)&(packet->type.cmd.cmd),sizeof(jbyte));
686 n = recv_fully(socketFD,(char *)packet->type.cmd.data, data_len);