FreeRDP
drdynvc.c
1 
22 #include <freerdp/utils/drdynvc.h>
23 #include <freerdp/channels/drdynvc.h>
24 
25 const char* drdynvc_get_packet_type(BYTE cmd)
26 {
27  switch (cmd)
28  {
29  case CREATE_REQUEST_PDU:
30  return "CREATE_REQUEST_PDU";
31  case DATA_FIRST_PDU:
32  return "DATA_FIRST_PDU";
33  case DATA_PDU:
34  return "DATA_PDU";
35  case CLOSE_REQUEST_PDU:
36  return "CLOSE_REQUEST_PDU";
37  case CAPABILITY_REQUEST_PDU:
38  return "CAPABILITY_REQUEST_PDU";
39  case DATA_FIRST_COMPRESSED_PDU:
40  return "DATA_FIRST_COMPRESSED_PDU";
41  case DATA_COMPRESSED_PDU:
42  return "DATA_COMPRESSED_PDU";
43  case SOFT_SYNC_REQUEST_PDU:
44  return "SOFT_SYNC_REQUEST_PDU";
45  case SOFT_SYNC_RESPONSE_PDU:
46  return "SOFT_SYNC_RESPONSE_PDU";
47  default:
48  return "UNKNOWN";
49  }
50 }