14using System.Reflection;
15using System.Runtime.InteropServices;
16using System.Threading;
17using System.Threading.Tasks;
18using System.Runtime.CompilerServices;
24using System.Collections.Generic;
26[assembly:AssemblyTitleAttribute(
"csmqmsgque")]
27[assembly:AssemblyDescriptionAttribute(
"Programming-Language-Micro-Kernel for C#")]
28[assembly:AssemblyConfigurationAttribute(
"")]
29[assembly:AssemblyCompanyAttribute(
"IPN")]
30[assembly:AssemblyProductAttribute(
"csmqmsgque")]
31[assembly:AssemblyCopyrightAttribute(
"Copyright (c) Andreas Otto 2022")]
32[assembly:AssemblyTrademarkAttribute(
"NHI1")]
33[assembly:AssemblyCultureAttribute(
"")]
35[assembly:AssemblyVersionAttribute(
"10.0.*")]
36[assembly:ComVisible(
false)]
37[assembly:CLSCompliantAttribute(
true)]
149 public static partial class MqMsgque {
155 static unsafe
private void MqSetupTmpl() {
157 Mq.MqCsInit(MqSysServerThreadCB,
null);
160 static private void MqCleanupTmpl() {
180 MkErrorE errVal =
Mq.MqIdentE_FromInt(value, out value_out);
188 MkErrorE errVal =
Mq.MqSlaveE_FromInt(value, out value_out);
196 MkErrorE errVal =
Mq.MqStartE_FromInt(value, out value_out);
204 MkErrorE errVal =
Mq.MqStatusIsEF_FromInt(value, out value_out);
212 MkErrorE errVal =
Mq.MqWaitOnEventE_FromInt(value, out value_out);
221 Int32 __retVal__L =
Mq.MqIdentE_ToInt(value);
227 IntPtr __retVal__L =
Mq.MqIdentE_ToString(value);
228 return Marshal.PtrToStringAnsi(__retVal__L);
233 Int32 __retVal__L =
Mq.MqSlaveE_ToInt(value);
239 IntPtr __retVal__L =
Mq.MqSlaveE_ToString(value);
240 return Marshal.PtrToStringAnsi(__retVal__L);
245 Int32 __retVal__L =
Mq.MqStartE_ToInt(value);
251 IntPtr __retVal__L =
Mq.MqStartE_ToString(value);
252 return Marshal.PtrToStringAnsi(__retVal__L);
257 Int32 __retVal__L =
Mq.MqStatusIsEF_ToInt(value);
263 IntPtr __retVal__L =
Mq.MqStatusIsEF_ToString(value);
264 return Marshal.PtrToStringAnsi(__retVal__L);
269 Int32 __retVal__L =
Mq.MqWaitOnEventE_ToInt(value);
275 IntPtr __retVal__L =
Mq.MqWaitOnEventE_ToString(value);
276 return Marshal.PtrToStringAnsi(__retVal__L);
292 public static string Help (
string tool) {
293 IntPtr tool_cstr = Marshal.StringToHGlobalAnsi(tool);
294 IntPtr __retVal__L =
Mq.MqHelp(tool_cstr);
295 Marshal.FreeHGlobal(tool_cstr);
296 return Marshal.PtrToStringAnsi(__retVal__L);
301 IntPtr __retVal__L =
Mq.MqHelpMsgque();
302 return Marshal.PtrToStringAnsi(__retVal__L);
319 IntPtr __retVal__L =
Mq.MqInitGetArg0();
325 IntPtr __retVal__L =
Mq.MqInitResetArg0();
332 Mq.MqInitSetArg0(bfl_hdl);
378 private unsafe
static MkErrorE MqSysServerThreadCB (
379 IntPtr mkrt, IntPtr ctx, IntPtr argP, String name,
int state, MkIdS *idP
382 var thread = Task.Factory.StartNew( () => {
383 Mq.MqSysServerThreadMain(argP);
386 (*idP).type = MkIdSE.THREAD;
387 if ((*idP).ioIsPipe) {
388 (*idP).val = (IntPtr)GCHandle.Alloc(thread,GCHandleType.Weak);
389 (*idP).setByExtern =
true;
391 (*idP).val = (IntPtr) 0x1;
393 }
catch (Exception ex) {
static MkBufferListC MkBufferListC_ObjNew(IntPtr hdl)
static void Check(IntPtr ctx, MkErrorE err)
MqMsgque PACKAGE - the package is the toplevel structure of the csmqmsgque …
MkErrorC Catch(Exception exception=null,[CallerMemberName]string callfunc=null)
static MkErrorC DEFAULT()
static MqSlaveE SlaveE_FromInt(int value)
C#: [static] MqSlaveE SlaveE_FromInt(int value) → C-API return the MqSlaveE from integer …
static string StatusIsEF_ToString(MqStatusIsEF value)
C#: [static] string StatusIsEF_ToString(MqStatusIsEF value) → C-API return the MqStatusIsEF as s...
static int IdentE_ToInt(MqIdentE value)
C#: [static] int IdentE_ToInt(MqIdentE value) → C-API return the MqIdentE as integer …
static int WaitOnEventE_ToInt(MqWaitOnEventE value)
C#: [static] int WaitOnEventE_ToInt(MqWaitOnEventE value) → C-API return the MqWaitOnEventE as i...
static string WaitOnEventE_ToString(MqWaitOnEventE value)
C#: [static] string WaitOnEventE_ToString(MqWaitOnEventE value) → C-API return the MqWaitOnEvent...
static string StartE_ToString(MqStartE value)
C#: [static] string StartE_ToString(MqStartE value) → C-API return the MqStartE as string …
static MqStartE StartE_FromInt(int value)
C#: [static] MqStartE StartE_FromInt(int value) → C-API return the MqStartE from integer …
static string IdentE_ToString(MqIdentE value)
C#: [static] string IdentE_ToString(MqIdentE value) → C-API return the MqIdentE as string …
static MqStatusIsEF StatusIsEF_FromInt(int value)
C#: [static] MqStatusIsEF StatusIsEF_FromInt(int value) → C-API return the MqStatusIsEF from int...
static int SlaveE_ToInt(MqSlaveE value)
C#: [static] int SlaveE_ToInt(MqSlaveE value) → C-API return the MqSlaveE as integer …
static int StatusIsEF_ToInt(MqStatusIsEF value)
C#: [static] int StatusIsEF_ToInt(MqStatusIsEF value) → C-API return the MqStatusIsEF as integer...
static MqWaitOnEventE WaitOnEventE_FromInt(int value)
C#: [static] MqWaitOnEventE WaitOnEventE_FromInt(int value) → C-API return the MqWaitOnEventE fr...
static MqIdentE IdentE_FromInt(int value)
C#: [static] MqIdentE IdentE_FromInt(int value) → C-API return the MqIdentE from integer …
static string SlaveE_ToString(MqSlaveE value)
C#: [static] string SlaveE_ToString(MqSlaveE value) → C-API return the MqSlaveE as string …
static int StartE_ToInt(MqStartE value)
C#: [static] int StartE_ToInt(MqStartE value) → C-API return the MqStartE as integer …
static string Help(string tool)
C#: [static] string Help(string tool) → C-API write csmqmsgque specific user-help to stderr
static string HelpMsgque()
C#: [static] string HelpMsgque() → C-API return a page with the usage of all csmqmsgque specific...
static MkBufferListC InitResetArg0()
C#: [static] MkBufferListC InitResetArg0() → C-API Reset the process-startup-prefix argument to ...
static MkBufferListC InitGetArg0()
C#: [static] MkBufferListC InitGetArg0() → C-API get the process startup-prefix argument
static void InitSetArg0(params string[] bfl)
C#: [static] InitSetArg0(MkBufferListC bfl = null) → C-API set the process startup-prefix argume...
static void InitSetArg0(MkBufferListC bfl=null)
C#: [static] InitSetArg0(MkBufferListC bfl = null) → C-API set the process startup-prefix argume...
static void Cleanup()
C#: [static] Cleanup() → C-API cleanup csmqmsgque internal memory …
static void Setup()
C#: [static] Setup() → C-API setup csmqmsgque internal memory …
MqStartE
→ C-API: MqStartE → C-API: MqStartE
MqStatusIsEF
→ C-API: MqStatusIsEF → C-API: MqStatusIsEF
MqIdentE
→ C-API: MqIdentE → C-API: MqIdentE
MqSlaveE
→ C-API: MqSlaveE → C-API: MqSlaveE
MqWaitOnEventE
→ C-API: MqWaitOnEventE → C-API: MqWaitOnEventE