M2MP Client in C