Fixed Compile issue on SLES11
Fixed ReadBuffer So it might actually work correctly. Its also been made much simpler
Added return codes to api
Added returAdded some send code to the client side