Completed transmit and receive functions
Signed-off-by: H.K. Wong <hkwong74531@yahoo.com.hk>