Lines Matching refs:pkt

1125 static char *pack_hex_byte (char *pkt, int /*unsigned char */ byte);
1135 static char *pack_threadid (char *pkt, threadref * id);
1147 static char *pack_threadinfo_request (char *pkt, int mode, threadref * id);
1149 static int remote_unpack_thread_info_response (char *pkt,
1158 static char *pack_threadlist_request (char *pkt, int startflag,
1162 static int parse_threadlist_response (char *pkt,
1266 pack_hex_byte (char *pkt, int byte)
1268 *pkt++ = hexchars[(byte >> 4) & 0xf];
1269 *pkt++ = hexchars[(byte & 0xf)];
1270 return pkt;
1298 static char *pack_string (char *pkt, char *string);
1301 pack_string (char *pkt, char *string)
1309 pkt = pack_hex_byte (pkt, len);
1315 *pkt++ = ch;
1317 return pkt;
1331 pack_threadid (char *pkt, threadref *id)
1337 limit = pkt + BUF_THREAD_ID_SIZE;
1338 while (pkt < limit)
1339 pkt = pack_hex_byte (pkt, *altid++);
1340 return pkt;
1440 pack_threadinfo_request (char *pkt, int mode, threadref *id)
1442 *pkt++ = 'q'; /* Info Query */
1443 *pkt++ = 'P'; /* process or thread info */
1444 pkt = pack_int (pkt, mode); /* mode */
1445 pkt = pack_threadid (pkt, id); /* threadid */
1446 *pkt = '\0'; /* terminate */
1447 return pkt;
1463 remote_unpack_thread_info_response (char *pkt, threadref *expectedref,
1470 char *limit = pkt + (rs->remote_packet_size); /* plausable parsing limit */
1480 pkt = unpack_int (pkt, &mask); /* arg mask */
1481 pkt = unpack_threadid (pkt, &ref);
1494 while ((pkt < limit) && mask && *pkt) /* packets are terminated with nulls */
1496 pkt = unpack_int (pkt, &tag); /* tag */
1497 pkt = unpack_byte (pkt, &length); /* length */
1512 pkt = unpack_threadid (pkt, &ref);
1518 info->active = stub_unpack_int (pkt, length);
1519 pkt += length;
1531 pkt = unpack_string (pkt, &info->shortname[0], length);
1537 pkt = unpack_string (pkt, &info->display[0], length);
1543 pkt = unpack_string (pkt, &info->more_display[0], length);
1572 pack_threadlist_request (char *pkt, int startflag, int threadcount,
1575 *pkt++ = 'q'; /* info query packet */
1576 *pkt++ = 'L'; /* Process LIST or threadLIST request */
1577 pkt = pack_nibble (pkt, startflag); /* initflag 1 bytes */
1578 pkt = pack_hex_byte (pkt, threadcount); /* threadcount 2 bytes */
1579 pkt = pack_threadid (pkt, nextthread); /* 64 bit thread identifier */
1580 *pkt = '\0';
1581 return pkt;
1587 parse_threadlist_response (char *pkt, int result_limit,
1597 limit = pkt + ((rs->remote_packet_size) - BUF_THREAD_ID_SIZE); /* done parse past here */
1598 pkt = unpack_byte (pkt, &count); /* count field */
1599 pkt = unpack_nibble (pkt, &done);
1601 pkt = unpack_threadid (pkt, original_echo); /* should match query packet */
1602 while ((count-- > 0) && (pkt < limit))
1604 pkt = unpack_threadid (pkt, resultlist++);
5221 "Fetch and print the remote list of thread identifiers, one pkt only");