Method | Description | |
---|---|---|
DatabaseConnector ( CLRScriptFramework Script ) : System |
Create a new DatabaseConnector object, which manages the secure tunnel to the database. If the tunnel is not enabled, then the object does nothing and returns immediately, otherwise, the tunnel process is started (and monitored and restarted in the event of a connection failure). In this case, the game server has two minutes to successfully connect to the tunnel or else the server process will be exited, because a game server does not function without a database being present during startup. During the wait for the database to come online, the logger queue is periodically written out by this module as the ACR_ServerCommunicator (which normally assumes responsibility for flushing the logger queue to the server log file) has not yet been initialized.
|
Method | Description | |
---|---|---|
AssignProcessToJobObject ( |
||
CloseHandle ( |
||
ConfigureJob ( |
Configure a job object for use by the database connector. It is set up so that once the last job handle lapses, all of the processes joined to the job are terminated.
|
|
CreateJob ( ) : |
Create a job object.
|
|
CreateJobObject ( |
||
CreateProcessA ( string lpApplicationName, string lpCommandLine, |
||
CreateProcessInJob ( string ExeFileName, string CommandLine, |
Create a process and attach it to a job. The process is resumed by the time the call returns if the call was successful.
|
|
DatabaseConnectionMonitorThread ( ) : void |
The thread procedure for the thread that monitors the PLINK.EXE instance that provides a secure SSH port forward to the MySQL database. Initially, it creates a PLINK.EXE process, and from that point it ensures that if the PLINK.EXE process closes, that a new process is started to connect out to the database automatically in the event of a temporary connectivity interruption.
|
|
ExtractResource ( string FileName, byte ResourceData ) : string |
Extract a resource to disk.
|
|
GetCurrentProcess ( ) : |
||
GetTunnelProcessCmdLine ( ) : string |
Get the command line used to launch the secure tunnel manager process (i.e., PLINK.EXE).
|
|
ResumeThread ( |
||
SetInformationJobObject ( |
||
TerminateProcess ( |
public DatabaseConnector ( CLRScriptFramework Script ) : System | ||
Script | CLRScriptFramework | Supplies a script object used to access the /// NWScript API. |
return | System |