added send.cpp to test difference between java and plain c, some other stuff