public bool tryMsg(
string name,
ushort fid,
ref MamaMsg result)
{
EnsurePeerCreated();
IntPtr myp = IntPtr.Zero;
int code = NativeMethods.mamaMsg_getMsg(nativeHandle, name, fid, ref myp);
if (CheckResultCodeIgnoreNotFound(code) != MamaStatus.mamaStatus.MAMA_STATUS_OK)
{
return false;
}
if (result == null)
result = new MamaMsg();
result.setNativeHandle(myp);
return true;
}