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

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

parent ac89616c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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