public Event CreateEvent(EventInformation eventInformation, XmlElement eventData) { FunctionCallDataElement el = new FunctionCallDataElement(eventData); uint socket = el.GetSimpleArgumentValueAsUInt(1); byte[] buffer = null; XmlNode bufferNode = eventData.SelectSingleNode("/event/arguments[@direction='out']/argument[1]/value/value"); if (bufferNode != null) { buffer = Convert.FromBase64String(bufferNode.InnerText.Trim()); } int bufferSize = el.GetSimpleArgumentValueAsInt(3); int flags = el.GetSimpleArgumentValueAsInt(4); int result = el.ReturnValueAsInt; return(new ReceiveEvent(eventInformation, socket, buffer, bufferSize, flags, result)); }
public Event CreateEvent(EventInformation eventInformation, System.Xml.XmlElement eventData) { FunctionCallDataElement el = new FunctionCallDataElement(eventData); uint socket = el.GetSimpleArgumentValueAsUInt(1); string encodedBuffer = eventData.SelectSingleNode("/event/arguments[@direction='in']/argument[2]/value/value").InnerText.Trim(); byte[] buffer = Convert.FromBase64String(encodedBuffer); int flags = el.GetSimpleArgumentValueAsInt(4); int result = el.ReturnValueAsInt; return(new SendEvent(eventInformation, socket, buffer, flags, result)); }
public Event CreateEvent(EventInformation eventInformation, XmlElement eventData) { FunctionCallDataElement el = new FunctionCallDataElement(eventData); uint socket = el.GetSimpleArgumentValueAsUInt(1); byte[] buffer = null; XmlNode bufferNode = eventData.SelectSingleNode("/event/arguments[@direction='out']/argument[1]/value/value"); if (bufferNode != null) { buffer = Convert.FromBase64String(bufferNode.InnerText.Trim()); } int bufferSize = el.GetSimpleArgumentValueAsInt(3); int flags = el.GetSimpleArgumentValueAsInt(4); int result = el.ReturnValueAsInt; return new ReceiveEvent(eventInformation, socket, buffer, bufferSize, flags, result); }
public Event CreateEvent(EventInformation eventInformation, System.Xml.XmlElement eventData) { FunctionCallDataElement el = new FunctionCallDataElement(eventData); uint socket = el.GetSimpleArgumentValueAsUInt(1); string encodedBuffer = eventData.SelectSingleNode("/event/arguments[@direction='in']/argument[2]/value/value").InnerText.Trim(); byte[] buffer = Convert.FromBase64String(encodedBuffer); int flags = el.GetSimpleArgumentValueAsInt(4); int result = el.ReturnValueAsInt; return new SendEvent(eventInformation, socket, buffer, flags, result); }