hub.h 604 B

123456789101112131415161718192021222324
  1. /*
  2. * Hub net client
  3. *
  4. * Copyright IBM, Corp. 2012
  5. *
  6. * Authors:
  7. * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
  8. * Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
  9. *
  10. * This work is licensed under the terms of the GNU LGPL, version 2 or later.
  11. * See the COPYING.LIB file in the top-level directory.
  12. *
  13. */
  14. #ifndef NET_HUB_H
  15. #define NET_HUB_H
  16. NetClientState *net_hub_add_port(int hub_id, const char *name,
  17. NetClientState *hubpeer);
  18. void net_hub_info(Monitor *mon);
  19. void net_hub_check_clients(void);
  20. bool net_hub_flush(NetClientState *nc);
  21. #endif /* NET_HUB_H */