#ifndef SESSION_H
#define SESSION_H
#include "../public/nsapi.h"
#include "../util/thrpool.h"
#include "config.h"
#include "sessionhandler.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct NSAPISession NSAPISession;
struct NSAPISession {
Session sn;
Connection *connection;
netbuf *netbuf;
threadpool_t *currentpool;
threadpool_t *defaultpool;
ServerConfiguration *config;
};
NSAPI_PUBLIC char *session_dns_lookup(Session *s,
int verify);
NSAPI_PUBLIC void* session_get_config(Session *s);
#ifdef __cplusplus
}
#endif
#endif