add a c function for .send and .sendc