IGLib
1.5
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Static Public Member Functions | |
static void | AcceptCallback (IAsyncResult ar) |
Asynchronously accepts an incoming connection attempt and creates a new Socket to handle remote host communication. More... | |
static void | ReceiveCallback (IAsyncResult ar) |
Asynchronously receive data from a connected Socket. More... | |
static void | SendCallback (IAsyncResult ar) |
Sends data asynchronously to a connected Socket. More... | |
Static Private Member Functions | |
static void | listenToSNMP () |
static void | answerSNMP () |
static void | Main (string[] args) |
static void | PInvokeNativePipeServer () |
Named pipe server through P/Invoke-ing the native APIs More... | |
static void | Main (string[] args) |
static void | Main (string[] args) |
static void | Main (string[] args) |
static bool | WriteMailslot (IntPtr hMailslot, String strMessage) |
Write a message to the specified mailslot More... | |
static void | Main (string[] args) |
static bool | ReadMailslot (IntPtr hMailslot) |
Read the messages from a mailslot by using the mailslot handle in a call to the ReadFile function. More... | |
static void | Main (string[] args) |
Main More... | |
static void | PInvokeNativePipeClient () |
static void | BCLSystemIOPipeClient () |
static void | Main (string[] args) |
Main More... | |
static string | GetResponse (NamedPipeClientStream pipeClient, string requestString) |
static void | BCLSystemIOPipeClient () |
static void | Main (string[] args) |
static void | PInvokeNativePipeServer () |
Named pipe server through P/Invoke-ing the native APIs More... | |
static void | BCLSystemIOPipeServer () |
Named pipe server through BCL System.IO.Pipes More... | |
static void | Main (string[] args) |
static void | BCLSystemIOPipeServer (bool openNewServersSequentially) |
static void | BCLSystemIOPipeServer () |
Named pipe server through BCL System.IO.Pipes More... | |
static void | Main (string[] args) |
Main More... | |
static void | PInvokeNativePipeClient () |
static void | BCLSystemIOPipeClient () |
static void | Main (string[] args) |
Main More... | |
static string | GetResponse (NamedPipeClientStream pipeClient, string requestString) |
static void | BCLSystemIOPipeClient () |
static void | Main (string[] args) |
static void | PInvokeNativePipeServer () |
Named pipe server through P/Invoke-ing the native APIs More... | |
static void | BCLSystemIOPipeServer () |
Named pipe server through BCL System.IO.Pipes More... | |
static void | Main (string[] args) |
static void | BCLSystemIOPipeServer (bool openNewServersSequentially) |
static void | BCLSystemIOPipeServer () |
Named pipe server through BCL System.IO.Pipes More... | |
static void | Main (string[] args) |
static void | RemotingClientByConfig () |
Access the .NET Remoting server using configuration file. More... | |
static void | RemotingClientByCode () |
Access the .NET Remoting server using code. More... | |
static void | Main (string[] args) |
static void | RemotingServerByConfig () |
Create the .NET Remoting server using configuration file. More... | |
static void | RemotingServerByCode () |
Create the .NET Remoting server using code. More... | |
static void | Main (string[] args) |
static void | Main (string[] args) |
Private Attributes | |
const int | BUFFER_SIZE = 4096 |
const uint | BUFFER_SIZE = 256 |
const string | STOP_REQUEST = "STOP" |
const bool | multiThreaded = true |
|
inlinestaticprivate |
References SECURITY_ATTRIBUTES.bInheritHandle, BUFFER_SIZE, PipeNative.CloseHandle(), PipeNative.ConnectNamedPipe(), PipeNative.CreateNamedPipe(), PipeNative.DisconnectNamedPipe(), PipeNative.ERROR_PIPE_CONNECTED, PipeNative.FlushFileBuffers(), PipeNative.GetLastError(), SecurityNative.InitializeSecurityDescriptor(), PipeNative.INVALID_HANDLE_VALUE, SECURITY_ATTRIBUTES.lpSecurityDescriptor, SECURITY_ATTRIBUTES.nLength, PipeNative.NMPWAIT_USE_DEFAULT_WAIT, PipeNative.PIPE_UNLIMITED_INSTANCES, PipeNative.ReadFile(), and SecurityNative.SetSecurityDescriptorDacl().
Referenced by PInvokeNativePipeServer().
|
inlinestaticprivate |
References SECURITY_ATTRIBUTES.bInheritHandle, BUFFER_SIZE, PipeNative.CloseHandle(), PipeNative.ConnectNamedPipe(), PipeNative.CreateNamedPipe(), PipeNative.DisconnectNamedPipe(), PipeNative.ERROR_PIPE_CONNECTED, PipeNative.FlushFileBuffers(), PipeNative.GetLastError(), SecurityNative.InitializeSecurityDescriptor(), PipeNative.INVALID_HANDLE_VALUE, SECURITY_ATTRIBUTES.lpSecurityDescriptor, SECURITY_ATTRIBUTES.nLength, PipeNative.NMPWAIT_USE_DEFAULT_WAIT, PipeNative.PIPE_UNLIMITED_INSTANCES, PipeNative.ReadFile(), SecurityNative.SetSecurityDescriptorDacl(), and PipeNative.WriteFile().
Referenced by PInvokeNativePipeServer().
|
inlinestaticprivate |
References PInvokeNativePipeServer().
|
inlinestaticprivate |
Named pipe server through P/Invoke-ing the native APIs
References answerSNMP(), and listenToSNMP().
Referenced by Main().
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
Write a message to the specified mailslot
hMailslot | Handle to the mailslot |
lpszMessage | The message to be written to the slot |
References MailslotNative.WriteFile().
Referenced by Main().
|
inlinestaticprivate |
References SECURITY_ATTRIBUTES.bInheritHandle, MailslotNative.CloseHandle(), MailslotNative.CreateMailslot(), SecurityNative.InitializeSecurityDescriptor(), MailslotNative.INVALID_HANDLE_VALUE, SECURITY_ATTRIBUTES.lpSecurityDescriptor, MailslotNative.MAILSLOT_WAIT_FOREVER, SECURITY_ATTRIBUTES.nLength, ReadMailslot(), and SecurityNative.SetSecurityDescriptorDacl().
|
inlinestaticprivate |
Read the messages from a mailslot by using the mailslot handle in a call to the ReadFile function.
hMailslot | The handle of the mailslot |
References MailslotNative.GetMailslotInfo(), MailslotNative.MAILSLOT_NO_MESSAGE, and MailslotNative.ReadFile().
Referenced by Main().
|
inlinestaticprivate |
Main
References BCLSystemIOPipeClient().
|
inlinestaticprivate |
References BUFFER_SIZE, PipeNative.CloseHandle(), PipeNative.CreateFile(), PipeNative.ERROR_MORE_DATA, PipeNative.ERROR_PIPE_BUSY, PipeNative.GetLastError(), PipeNative.INVALID_HANDLE_VALUE, PipeNative.ReadFile(), PipeNative.SetNamedPipeHandleState(), PipeNative.WaitNamedPipe(), and PipeNative.WriteFile().
|
inlinestaticprivate |
References BUFFER_SIZE.
Referenced by Main().
|
inlinestaticprivate |
Main
References BCLSystemIOPipeClient().
|
inlinestaticprivate |
References BUFFER_SIZE.
Referenced by BCLSystemIOPipeClient().
|
inlinestaticprivate |
References BUFFER_SIZE, and GetResponse().
|
inlinestaticprivate |
References PInvokeNativePipeServer().
|
inlinestaticprivate |
Named pipe server through P/Invoke-ing the native APIs
References SECURITY_ATTRIBUTES.bInheritHandle, BUFFER_SIZE, PipeNative.CloseHandle(), PipeNative.ConnectNamedPipe(), PipeNative.CreateNamedPipe(), PipeNative.DisconnectNamedPipe(), PipeNative.ERROR_PIPE_CONNECTED, PipeNative.FlushFileBuffers(), PipeNative.GetLastError(), SecurityNative.InitializeSecurityDescriptor(), PipeNative.INVALID_HANDLE_VALUE, SECURITY_ATTRIBUTES.lpSecurityDescriptor, SECURITY_ATTRIBUTES.nLength, PipeNative.NMPWAIT_USE_DEFAULT_WAIT, PipeNative.PIPE_UNLIMITED_INSTANCES, PipeNative.ReadFile(), SecurityNative.SetSecurityDescriptorDacl(), and PipeNative.WriteFile().
|
inlinestaticprivate |
Named pipe server through BCL System.IO.Pipes
References BUFFER_SIZE.
Referenced by BCLSystemIOPipeServer(), and Main().
|
inlinestaticprivate |
References BCLSystemIOPipeServer().
|
inlinestaticprivate |
References BCLSystemIOPipeServer().
|
inlinestaticprivate |
Named pipe server through BCL System.IO.Pipes
References BUFFER_SIZE.
|
inlinestaticprivate |
Main
References BCLSystemIOPipeClient().
|
inlinestaticprivate |
References BUFFER_SIZE, PipeNative.CloseHandle(), PipeNative.CreateFile(), PipeNative.ERROR_MORE_DATA, PipeNative.ERROR_PIPE_BUSY, PipeNative.GetLastError(), PipeNative.INVALID_HANDLE_VALUE, PipeNative.ReadFile(), PipeNative.SetNamedPipeHandleState(), PipeNative.WaitNamedPipe(), and PipeNative.WriteFile().
|
inlinestaticprivate |
References BUFFER_SIZE.
|
inlinestaticprivate |
Main
References BCLSystemIOPipeClient().
|
inlinestaticprivate |
References BUFFER_SIZE.
|
inlinestaticprivate |
References BUFFER_SIZE, and GetResponse().
|
inlinestaticprivate |
References PInvokeNativePipeServer().
|
inlinestaticprivate |
Named pipe server through P/Invoke-ing the native APIs
References SECURITY_ATTRIBUTES.bInheritHandle, BUFFER_SIZE, PipeNative.CloseHandle(), PipeNative.ConnectNamedPipe(), PipeNative.CreateNamedPipe(), PipeNative.DisconnectNamedPipe(), PipeNative.ERROR_PIPE_CONNECTED, PipeNative.FlushFileBuffers(), PipeNative.GetLastError(), SecurityNative.InitializeSecurityDescriptor(), PipeNative.INVALID_HANDLE_VALUE, SECURITY_ATTRIBUTES.lpSecurityDescriptor, SECURITY_ATTRIBUTES.nLength, PipeNative.NMPWAIT_USE_DEFAULT_WAIT, PipeNative.PIPE_UNLIMITED_INSTANCES, PipeNative.ReadFile(), SecurityNative.SetSecurityDescriptorDacl(), and PipeNative.WriteFile().
|
inlinestaticprivate |
Named pipe server through BCL System.IO.Pipes
References BUFFER_SIZE.
|
inlinestaticprivate |
References BCLSystemIOPipeServer().
|
inlinestaticprivate |
References BCLSystemIOPipeServer().
|
inlinestaticprivate |
Named pipe server through BCL System.IO.Pipes
References BUFFER_SIZE.
|
inlinestaticprivate |
References RemotingClientByCode().
|
inlinestaticprivate |
Access the .NET Remoting server using configuration file.
|
inlinestaticprivate |
Access the .NET Remoting server using code.
Referenced by Main().
|
inlinestaticprivate |
References RemotingServerByConfig().
|
inlinestaticprivate |
Create the .NET Remoting server using configuration file.
Referenced by Main().
|
inlinestaticprivate |
Create the .NET Remoting server using code.
|
inlinestaticprivate |
|
inlinestaticprivate |
References AcceptCallback().
|
inlinestatic |
Asynchronously accepts an incoming connection attempt and creates a new Socket to handle remote host communication.
ar | the status of an asynchronous operation |
References ReceiveCallback().
Referenced by Main().
|
inlinestatic |
Asynchronously receive data from a connected Socket.
ar | the status of an asynchronous operation |
References SendCallback().
Referenced by AcceptCallback().
|
inlinestatic |
Sends data asynchronously to a connected Socket.
ar | The status of an asynchronous operation |
Referenced by ReceiveCallback().
|
private |
|
private |
|
private |
|
private |