Serial protocol - transmitting while receiving or vice versa

Thank You. Yes I have also tried it with serial software but how to code the fact that while one is transmitting the other port is simultaneous receiving??
Regards