예제 #1
0
        public Int32 GetOption(ZFrameOption property)
        {
            Int32  result;
            ZError error;

            if (-1 == (result = GetOption(property, out error)))
            {
                throw new ZException(error);
            }
            return(result);
        }
예제 #2
0
        public Int32 GetOption(ZFrameOption property, out ZError error)
        {
            error = ZError.None;

            int result;

            if (-1 == (result = zmq.msg_get(this.framePtr, (Int32)property)))
            {
                error = ZError.GetLastErr();
                return(-1);
            }
            return(result);
        }
예제 #3
0
		public Int32 GetOption(ZFrameOption property, out ZError error)
		{
			error = ZError.None;

			int result;
			if (-1 == (result = zmq.msg_get(this._framePtr, (Int32)property)))
			{
				error = ZError.GetLastErr();
				return -1;
			}
			return result;
		}
예제 #4
0
		public Int32 GetOption(ZFrameOption property)
		{
			Int32 result;
			ZError error;
			if (-1 == (result = GetOption(property, out error)))
			{
				throw new ZException(error);
			}
			return result;
		}