send and receive for windows and complete dotNet implementation