http://www.stat.ucla.edu/cgi-bin/man-cgi?termios
Look at the bits which talk about XON and XOFF (for software control)
Look at the bits which talk about CTS and RTS (for hardware control)
Remember, you need a fully wired serial cable for hardware control.