Wombat.MamaMsg.addI32 C# (CSharp) Method

addI32() public method

Add a new 32 bit unsigned int field.
public addI32 ( string name, ushort fid, int val ) : void
name string
fid ushort
val int
return void
        public void addI32(
			string name, 
			ushort fid,
			int val)
        {
            EnsurePeerCreated();
            int code = NativeMethods.mamaMsg_addI32(nativeHandle, name, fid, val);
            CheckResultCode(code);
        }

Usage Example

Example #1
0
		private void SendRequest()
		{
			try
			{
				MamaMsg msg = new MamaMsg();
				msg.addI32 ("field", 1, 32);

				publisher.sendFromInboxWithThrottle(inbox, msg, sendCompleteCallback, null);

				GC.KeepAlive(msg);
			}
			catch (MamaException e)
			{
				Console.WriteLine("Error sending request: {0}", e.ToString());
				Exit(1);
			}
		}
MamaMsg