Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 5b418030 authored by rswindell's avatar rswindell

socket_check() now sets optional bool arg to true if data waiting.

parent ac89616c
......@@ -80,6 +80,18 @@
#include <sys/stat.h>
#ifdef JAVASCRIPT
#ifdef __unix__
#define XP_UNIX
#else
#define XP_PC
#endif
#include <jsapi.h>
#define JAVASCRIPT_RUNTIME_MEMORY (1*1024*1024)
#define JAVASCRIPT_CONTEXT_STACK (8*1024)
#endif
/***********************/
/* Synchronet-specific */
/***********************/
......@@ -149,6 +161,14 @@ public:
bool output_thread_running;
bool input_thread_running;
#ifdef JAVASCRIPT
JSContext* js_cx;
JSObject* js_glob;
long js_execfile(char *fname);
#endif
char menu_dir[128]; /* Over-ride default menu dir */
char menu_file[128]; /* Over-ride menu file */
......@@ -668,7 +688,7 @@ public:
SOCKET open_socket(int type);
int close_socket(SOCKET);
bool socket_check(SOCKET sock);
bool socket_check(SOCKET sock, bool *rd);
u_long resolve_ip(char *addr);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment