Go to the source code of this file.
Functions | |
void | VerboseNetDirectoryServer (bool verbose) |
void | StartNetDirectoryServer (int port, TDirectory *dir) |
void | NetDirectoryExport (TDirectory *dir, const char *exportName) |
void | NetDirectoryExport (TFolder *folder, const char *exportName) |
void | NetDirectoryExport (TCollection *collection, const char *exportName) |
void NetDirectoryExport | ( | TCollection * | collection, | |
const char * | exportName | |||
) |
Definition at line 654 of file netDirectoryServer.cxx.
References gExportNames, gExports, and gVerbose.
00655 { 00656 if (gVerbose) 00657 printf("Export TCollection %p named [%s] of type [%s] as [%s]\n", collection, collection->GetName(), collection->IsA()->GetName(), exportName); 00658 00659 bool found = false; 00660 for (unsigned int i=0; i<gExports.size(); i++) 00661 { 00662 const char* ename = gExports[i].c_str(); 00663 if (strcmp(ename, exportName) == 0) 00664 found = true; 00665 } 00666 00667 if (!found) 00668 gExports.push_back(exportName); 00669 gExportNames[exportName] = collection->GetName(); 00670 }
void NetDirectoryExport | ( | TFolder * | folder, | |
const char * | exportName | |||
) |
Definition at line 636 of file netDirectoryServer.cxx.
References gExportNames, gExports, and gVerbose.
00637 { 00638 if (gVerbose) 00639 printf("Export TFolder %p named [%s] of type [%s] as [%s]\n", folder, folder->GetName(), folder->IsA()->GetName(), exportName); 00640 00641 bool found = false; 00642 for (unsigned int i=0; i<gExports.size(); i++) 00643 { 00644 const char* ename = gExports[i].c_str(); 00645 if (strcmp(ename, exportName) == 0) 00646 found = true; 00647 } 00648 00649 if (!found) 00650 gExports.push_back(exportName); 00651 gExportNames[exportName] = folder->GetName(); 00652 }
void NetDirectoryExport | ( | TDirectory * | dir, | |
const char * | exportName | |||
) |
Definition at line 618 of file netDirectoryServer.cxx.
References gExportNames, gExports, and gVerbose.
Referenced by main(), TRootanaEventLoop::OpenRootFile(), StartNetDirectoryServer(), and startRun().
00619 { 00620 if (gVerbose) 00621 printf("Export TDirectory %p named [%s] of type [%s] as [%s]\n", dir, dir->GetName(), dir->IsA()->GetName(), exportName); 00622 00623 bool found = false; 00624 for (unsigned int i=0; i<gExports.size(); i++) 00625 { 00626 const char* ename = gExports[i].c_str(); 00627 if (strcmp(ename, exportName) == 0) 00628 found = true; 00629 } 00630 00631 if (!found) 00632 gExports.push_back(exportName); 00633 gExportNames[exportName] = dir->GetName(); 00634 }
void StartNetDirectoryServer | ( | int | port, | |
TDirectory * | dir | |||
) |
Definition at line 672 of file netDirectoryServer.cxx.
References gAlreadyRunning, NetDirectoryExport(), root_socket_server(), socket_listener(), and StartLockRootTimer().
Referenced by TRootanaEventLoop::ExecuteLoop(), and main().
00673 { 00674 if (dir) 00675 NetDirectoryExport(dir, dir->GetName()); 00676 00677 if (gAlreadyRunning) 00678 return; 00679 00680 if (port==0) 00681 return; 00682 00683 gAlreadyRunning = true; 00684 00685 StartLockRootTimer(); 00686 00687 static int pport = port; 00688 #if 1 00689 TThread *thread = new TThread("NetDirectoryServer", socket_listener, &pport); 00690 thread->Run(); 00691 #else 00692 LPDWORD lpThreadId = 0; 00693 CloseHandle(CreateThread(NULL, 1024, &root_socket_server, &pport, 0, lpThreadId)); 00694 #endif 00695 }
void VerboseNetDirectoryServer | ( | bool | verbose | ) |
Definition at line 608 of file netDirectoryServer.cxx.
References gVerbose.
00609 { 00610 gVerbose = verbose; 00611 //gDebugLockRoot = verbose; 00612 }