예제 #1
0
void Outbound::send_info(PacketList &complete_list,Net::PTP::ServerDevice *ptp,PtrLen<const uint8> server_info)
 {
  Packet<uint8,InfoExt> packet2=packet.popExt().pushExt<InfoExt>(ptp,idx,server_info);

  packet2.pushCompleteFunction(InfoExt::Complete);

  complete_list.put(packet2);
 }
예제 #2
0
void Outbound::send_cancel(PacketList &complete_list,Net::PTP::ServerDevice *ptp)
 {
  Packet<uint8,CancelExt> packet2=packet.popExt().pushExt<CancelExt>(ptp,idx);

  packet2.pushCompleteFunction(CancelExt::Complete);

  complete_list.put(packet2);
 }