Advertisement
NickG

Untitled

Sep 17th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.74 KB | None | 0 0
  1. nsmp_packet_fmt nsmp_packet_map[256] = {
  2.     [0x00] = {
  3.         .name = "Reserved - Header",
  4.         .field_count = 3,
  5.         .fields = (nsmp_packet_field[]) {
  6.             [0] = {
  7.                 .name = "Flag Bytes",
  8.                 .type = nsmp_uint8
  9.             },
  10.             [1] = {
  11.                 .name = "Packet ID",
  12.                 .type = nsmp_uint8
  13.             },
  14.             [2] = {
  15.                 .name = "Packet Size",
  16.                 .type = nsmp_uint16
  17.             }
  18.         }
  19.     },
  20.     [0x01] = {
  21.         .name = "Handshake",
  22.         .field_count = 4,
  23.         .fields = (nsmp_packet_field[]) {
  24.             [0] = {
  25.                 .name = "Protocol Version",
  26.                 .type = nsmp_int16
  27.             },
  28.             [1] = {
  29.                 .name = "User Agent",
  30.                 .type = nsmp_string
  31.             },
  32.             [2] = {
  33.                 .name = "Server Host",
  34.                 .type = nsmp_string
  35.             },
  36.             [3] = {
  37.                 .name = "Server Port",
  38.                 .type = nsmp_uint16
  39.             }
  40.         }
  41.     }
  42. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement