diff options
Diffstat (limited to '')
-rw-r--r-- | nping/global_structures.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nping/global_structures.h b/nping/global_structures.h new file mode 100644 index 0000000..aeae3af --- /dev/null +++ b/nping/global_structures.h @@ -0,0 +1,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 |