summaryrefslogtreecommitdiff
path: root/src/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network.h')
-rw-r--r--src/network.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/network.h b/src/network.h
index ee03af6..6c7e640 100644
--- a/src/network.h
+++ b/src/network.h
@@ -36,18 +36,10 @@
#include <netdb.h>
#include <openssl/ssl.h>
-typedef struct {
- int commfd;
- SSL* ssl;
-} clifd;
-
int ip_listen(int* sockfd, const char *host, const char *serv, socklen_t *addrlenp, const char type); /* socket, bind, listen... */
int ip_connect(int* sockfd, const char *host, const char *serv, const char type); /* socket, connect... */
char* sock_ntop(const struct sockaddr* sa, socklen_t salen, char* namebuf, char* portbuf, char type); /* return the IP of connected user */
-int send_message(char type, clifd fd, unsigned char* buf, int amount);
-int get_message(char type, clifd fd, unsigned char* buf, int amount);
-
int SSL_writen(SSL* fd, unsigned char* buf, int amount);
int SSL_readn(SSL* fd, unsigned char* buf, int amount);
int writen(int fd, unsigned char* buf, int amount);