summaryrefslogtreecommitdiffstats
path: root/nping/global_structures.h
blob: aeae3af799db5f1190251c97c39b595d54e034fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef GLOBAL_STRUCTURES_H
#define GLOBAL_STRUCTURES_H

#include "nsock.h"
#include "nbase.h"


typedef struct service_lookup {
	char *name;
	u8 proto;
	u16 portno;
} service_lookup;



typedef struct m_data {
	nsock_pool nsp;
	nsock_iod nsi;
	int state;
	int protocol;
	unsigned short port;
	struct in_addr ip;
	int attempts;
	int max_attempts;	/* how many attempts in one connection */
	char *username;
	char *password;
	char *buf;
	int bufsize;
} m_data;



#endif