network.h 614 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* $Id: network.h,v 1.6 2001/04/15 14:57:19 kilobug Exp $ */
  2. #ifndef __PROLO_SERVER_NETWORK_H__
  3. #define __PROLO_SERVER_NETWORK_H__
  4. #include <stdio.h>
  5. #include <general.h>
  6. #include "private.h"
  7. typedef struct _gfx_client_t
  8. {
  9. boolean_t alive;
  10. int sock;
  11. FILE *wsock;
  12. } gfx_client_t;
  13. typedef struct _gfx_t
  14. {
  15. int sock;
  16. int master;
  17. FILE *wmaster;
  18. GSList *clients;
  19. } gfx_t;
  20. boolean_t gfx_get_ack(gfx_client_t *cl);
  21. boolean_t gfx_new_client(int socket, boolean_t master);
  22. void gfx_client_new_turn(boolean_t end);
  23. void gfx_init();
  24. void gfx_write_object(FILE *file, item_t *obj);
  25. #endif