Lines Matching refs:packet
100 * Create a byte[] from a packet struct. All data in the byte array
101 * is JDWP packet suitable for wire transmission. That is, all fields,
116 /* total packet length is header + data */
122 /* First 4 bytes of packet are the length (in big endian format) */
156 * Fill a packet struct from a byte array. The byte array is a
157 * JDWP packet suitable for wire transmission. That is, all fields,
164 * the JDWP packet that is contains.
174 * Get the packet header
192 /* command packet */
198 * The length of the JDWP packet is 11 + data
224 freePacketData(jdwpPacket *packet)
226 if (packet->type.cmd.len > 0) {
227 free(packet->type.cmd.data);
272 jdwpPacket packet;
275 rc = shmemBase_receivePacket(connection, &packet);
280 jbyteArray array = packetToByteArray(env, &packet);
282 /* Free the packet even if there was an exception above */
283 freePacketData(&packet);
314 jdwpPacket packet;
317 byteArrayToPacket(env, b, &packet);
322 rc = shmemBase_sendPacket(connection, &packet);
326 freePacketData(&packet);