Hi all, i am tring to implement modbus communication protocol. Since socket programing have no sense of data type and they operate only with bytes i have to make 4 functions to convert data into stram of bytes. I need to write a function to convert coils (bits) into bytes, to conver char into bytes, to convert intgers into bytes and to convert long into bytes. I dont have any experience how to do this, please help me on this one. Best regards, BoSChoW.