BOOL rail_send_pdu(railPlugin* rail, wStream* s, UINT16 orderType) { UINT16 orderLength; orderLength = (UINT16) Stream_GetPosition(s); Stream_SetPosition(s, 0); rail_write_pdu_header(s, orderType, orderLength); Stream_SetPosition(s, orderLength); WLog_Print(rail->log, WLOG_DEBUG, "Sending %s PDU, length: %d", RAIL_ORDER_TYPE_STRINGS[((orderType & 0xF0) >> 3) + (orderType & 0x0F)], orderLength); return rail_send_channel_data(rail, Stream_Buffer(s), orderLength); }
void rail_send_pdu(rdpRailOrder* rail_order, STREAM* s, uint16 orderType) { uint16 orderLength; orderLength = stream_get_length(s); stream_set_pos(s, 0); rail_write_pdu_header(s, orderType, orderLength); stream_set_pos(s, orderLength); /* send */ DEBUG_RAIL("Sending %s PDU, length:%d", RAIL_ORDER_TYPE_STRINGS[((orderType & 0xF0) >> 3) + (orderType & 0x0F)], orderLength); rail_send_channel_data(rail_order->plugin, s->data, orderLength); }
void rail_send_pdu(rdpRailOrder* rail_order, wStream* s, UINT16 orderType) { UINT16 orderLength; orderLength = Stream_GetPosition(s); Stream_SetPosition(s, 0); rail_write_pdu_header(s, orderType, orderLength); Stream_SetPosition(s, orderLength); /* send */ DEBUG_RAIL("Sending %s PDU, length:%d", RAIL_ORDER_TYPE_STRINGS[((orderType & 0xF0) >> 3) + (orderType & 0x0F)], orderLength); rail_send_channel_data(rail_order->plugin, s->buffer, orderLength); }