added typecasts for the used send/receive buffer pointer buff