factored out unix (file descriptor based) implementation to make way for

a windows WM_COPYDATA based implementation.
This commit is contained in:
darin@netscape.com
2002-11-06 01:11:07 +00:00
parent 461261d2af
commit ead7c21f87
17 changed files with 711 additions and 570 deletions

View File

@@ -47,9 +47,9 @@
//-----------------------------------------------------------------------------
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(ipcService, Init)
#ifndef IPC_USE_INET
#include "ipcSocketProvider.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(ipcSocketProvider)
#ifdef XP_UNIX
#include "ipcSocketProviderUnix.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(ipcSocketProviderUnix)
#endif
//-----------------------------------------------------------------------------
@@ -62,11 +62,11 @@ static const nsModuleComponentInfo components[] = {
IPC_SERVICE_CID,
IPC_SERVICE_CONTRACTID,
ipcServiceConstructor, },
#ifndef IPC_USE_INET
#ifdef XP_UNIX
{ IPC_SOCKETPROVIDER_CLASSNAME,
IPC_SOCKETPROVIDER_CID,
NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ipc",
ipcSocketProviderConstructor, },
NS_NETWORK_SOCKET_CONTRACTID_PREFIX IPC_SOCKET_TYPE,
ipcSocketProviderUnixConstructor, },
#endif
};