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.

27 lines
655B

  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_HELO 'H'
  7. #define MSG_REPLY 'A'
  8. #define MSG_POWER 'P'
  9. #define MSG_GAIT 'G'
  10. #define MSG_BODY 'B'
  11. #define MSG_LEG 'L'
  12. #define MSG_QUERY 'Q'
  13. typedef struct {
  14. char type;
  15. char parameters[255];
  16. } licks_message;
  17. extern void licks_socket_open();
  18. extern void licks_socket_close();
  19. extern int licks_socket_poll();
  20. //extern void send_message(licks_message *, char *);
  21. extern void send_reply(licks_message *);
  22. extern char *receive_message(licks_message *);
  23. #endif