2 #include <grass/config.h>
15 #define ECONNREFUSED WSAECONNREFUSED
16 #define EADDRINUSE WSAEADDRINUSE
17 #define ENOTSOCK WSAENOTSOCK
18 #define ETIMEDOUT WSAETIMEDOUT
21 #include <grass/gis.h>
22 #include <grass/glocale.h>
23 #include <grass/raster.h>
27 extern int _rfd, _wfd;
30 extern int sync_driver(
char *);
32 static char *sockpath;
57 name =
getenv(
"MONITOR_OVERRIDE");
63 G_warning(_(
"No graphics monitor has been selected for output."));
64 G_warning(_(
"Please run \"d.mon\" to select a graphics monitor."));
70 if ((sockpath = G_sock_get_fname(name)) ==
NULL) {
72 G_warning(_(
"Failed to get socket name for monitor <%s>."), name);
79 if (!G_sock_exists(sockpath)) {
81 G_warning(_(
"No socket to connect to for monitor <%s>."), name);
87 _wfd = G_sock_connect(sockpath);
98 G_warning(_(
"Socket is already in use or not accepting connections."));
99 G_warning(_(
"Use d.mon to select a monitor"));
105 G_warning(_(
"Trying to connect to something not a socket."));
111 G_warning(_(
"Connect attempt timed out."));
112 G_warning(_(
"Probably an error with the server."));
char * G__getenv(const char *name)
Get environment variable.
int REM_open_driver(void)
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
def verbose
Display a verbose message using g.message -v