Skip to content
raulopez0 edited this page Mar 11, 2013 · 2 revisions

Request

       7 6 5 4 3 2 1 0
      +===============+
    0 |               |  request_type (create_queue, destroy_queue, push, pull)
      +---------------+   
    1 |               | 
        . . . . . . .    sender_name (255 bytes)
  255 |               |
      +---------------+    
  256 |               | 
        . . . . . . .    queue_id (255 bytes)
  512 |               |  
      +---------------+
  513 |               |
        . . . . . . .    message_size (4 bytes)
  516 |               |
      +---------------+
  517 |               |
        . . . . . . .    message_type (4 bytes)
  520 |               | 
      +---------------+
  521 |               |  msg (2048 bytes)
        . . . . . . .    
 2568 |               | 
      +===============+

Response:

       7 6 5 4 3 2 1 0
      +===============+
    0 |               |  response_type (ok, error)
      +---------------+   
    1 |               | 
        . . . . . . .    msg_size (4 bytes)
    4 |               |
      +---------------+    
    5 |               | 
        . . . . . . .    response_msg (255 bytes)
  259 |               |  
      +===============+
Clone this wiki locally