24 lines
323 B
C
24 lines
323 B
C
|
#ifndef _CONNECTION_H_
|
||
|
#define _CONNECTION_H_
|
||
|
|
||
|
#include <netinet/ip.h>
|
||
|
|
||
|
#include "list.h"
|
||
|
|
||
|
struct connection {
|
||
|
struct list_head list;
|
||
|
|
||
|
struct sockaddr_in src_addr;
|
||
|
struct sockaddr_in dst_addr;
|
||
|
|
||
|
int src_fd;
|
||
|
int dst_fd;
|
||
|
|
||
|
unsigned long login_time;
|
||
|
unsigned long idle_time;
|
||
|
|
||
|
char user[32];
|
||
|
};
|
||
|
|
||
|
#endif // _CONNECTION_H_
|