Optimised PLDM daemon to use vectored IO
Optimised PLDM daemon to use vectored IO

The pldm daemon currently receives a PLDM response message as a
std::vector<uint8_t> from a command handler which then inserts MCTP
EID and Type (as required by the mctp demux daemon) at the beginning
 of the vector which requires O(n) element moves. The code has been
refactored to now use scatter/gather which replaces the vector
inserts resulting in O(1). This is accomplished by using sendmsg()
instead of sendto() syscall.

Change-Id: I47a051ed267eadc3bc9566cca24431b45322205f
Signed-off-by: Zahed Hossain <92e95cfda0478c60025769b483d66a9837535fd8@in.ibm.com>

openbmc/pldm,openbmc/pldm,openbmc/pldm