1 /* 2 * Copyright 2006, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef NET_STAT_H 6 #define NET_STAT_H 7 8 9 #include <OS.h> 10 11 #include <sys/socket.h> 12 13 14 #define NET_STAT_SOCKET 1 15 #define NET_STAT_PROTOCOL 2 16 17 18 typedef struct net_stat { 19 int family; 20 int type; 21 int protocol; 22 char state[B_OS_NAME_LENGTH]; 23 team_id owner; 24 struct sockaddr_storage address; 25 struct sockaddr_storage peer; 26 size_t receive_queue_size; 27 size_t send_queue_size; 28 } net_stat; 29 30 #endif // NET_STAT_H 31