You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
581B

  1. #ifndef LICK_MESSAGE_H
  2. #define LICKS_MESSAGE_H
  3. #include "dynamic_sequencer.h"
  4. #include <sys/types.h>
  5. #define MSG_QUIT 'X'
  6. #define MSG_POWER 'P'
  7. #define MSG_GAIT 'G'
  8. #define MSG_BODY 'B'
  9. #define MSG_LEG 'L'
  10. #define MSG_QUERY 'Q'
  11. typedef struct {
  12. char type;
  13. char parameters[255];
  14. } licks_message;
  15. extern void licks_socket_open();
  16. extern void licks_socket_close();
  17. extern int licks_socket_poll();
  18. //extern void send_message(licks_message *, char *);
  19. extern void send_reply(licks_message *);
  20. extern char *receive_message(licks_message *);
  21. #endif