diff options
Diffstat (limited to 'xorg-server/os/connection.c')
| -rw-r--r-- | xorg-server/os/connection.c | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/xorg-server/os/connection.c b/xorg-server/os/connection.c index 3ff93bbb6..39f1dae87 100644 --- a/xorg-server/os/connection.c +++ b/xorg-server/os/connection.c @@ -67,6 +67,9 @@ SOFTWARE.  #ifdef WIN32  #include <X11/Xwinsock.h> +#ifdef _DEBUG +#define DEBUG +#endif  #endif  #include <X11/X.h>  #include <X11/Xproto.h> @@ -111,6 +114,10 @@ SOFTWARE.  #include "dixstruct.h"  #include "xace.h" +#ifdef _MSC_VER +typedef int pid_t; +#endif +  #define Pid_t pid_t  #ifdef DNETCONN @@ -270,6 +277,23 @@ lookup_trans_conn (int fd)      return (NULL);  } +int +TransIsListening(char *protocol) +{ +  /* look for this transport in the list of listeners */ +  int i; +  for (i = 0; i < ListenTransCount; i++) +    { +      if (!strcmp(protocol, ListenTransConns[i]->transptr->TransName)) +        { +          return 1; +        } +    } + +  return 0; +} + +  /* Set MaxClients and lastfdesc, and allocate ConnectionTranslation */  void @@ -1033,6 +1057,10 @@ CloseDownConnection(ClientPtr client)  {      OsCommPtr oc = (OsCommPtr)client->osPrivate; +#ifdef DEBUG +    ErrorF("CloseDownConnection: client index = %d, socket fd = %d\n", +	   client->index, oc->fd); +#endif      if (oc->output && oc->output->count)  	FlushClient(client, oc, (char *)NULL, 0);  #ifdef XDMCP | 
