rocksock_ssl: respect timeouts
[rofl0r-rocksock.git] / rocksock_internal.h
blob084f82d454940210fb7cf0ec12244d8d473d253b
1 #ifndef ROCKSOCK_INTERNAL_H
2 #define ROCKSOCK_INTERNAL_H
4 #include "rocksock.h"
6 typedef struct {
7 struct addrinfo* hostaddr;
8 struct addrinfo hostaddr_buf;
9 struct sockaddr_storage hostaddr_aiaddr_buf;
10 } rs_resolveStorage;
12 extern const char* rs_errorMap[];
14 int rocksock_seterror(rocksock* sock, rs_errorType errortype, int error, const char* file, int line);
16 #endif