Skip to content
Snippets Groups Projects
Commit ee771b8e authored by rswindell's avatar rswindell
Browse files

Created accept_socket() function in main.cpp which is a version of accept()

that keeps proper track of the number of open socket descriptors.
parent 20fe4acf
No related branches found
No related tags found
No related merge requests found
......@@ -899,6 +899,7 @@ BOOL md(char *path);
/* main.c */
int lprintf(char *fmt, ...); /* telnet log */
SOCKET open_socket(int type);
SOCKET accept_socket(SOCKET s, SOCKADDR* addr, socklen_t* addrlen);
int close_socket(SOCKET);
u_long resolve_ip(char *addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment