2006-12-19 05:06:07 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2006, Haiku, Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef NET_STAT_H
|
|
|
|
#define NET_STAT_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define NET_STAT_SOCKET 1
|
|
|
|
#define NET_STAT_PROTOCOL 2
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct net_stat {
|
|
|
|
int family;
|
|
|
|
int type;
|
|
|
|
int protocol;
|
|
|
|
char state[B_OS_NAME_LENGTH];
|
|
|
|
team_id owner;
|
2007-04-25 21:41:18 +04:00
|
|
|
struct sockaddr_storage address;
|
|
|
|
struct sockaddr_storage peer;
|
|
|
|
size_t receive_queue_size;
|
|
|
|
size_t send_queue_size;
|
2006-12-19 05:06:07 +03:00
|
|
|
} net_stat;
|
|
|
|
|
|
|
|
#endif // NET_STAT_H
|