Chat application with synchronous communication via Recommended Standard 232.
-
'rs232.c'
contains functions for- rs232_open
- rs232_close
- rs232_read
- rs232_write
-
'rs232.h'
contains- structure rs232_obj
- declaration of rs232 functions
-
'232chat.c'
contains- ReadThread func
Constantly waiting and reading a message from another user
- main
Select COM port, user name, laucnh ReadThread func, reading a user message and sending it.
- ReadThread func
Connect 2 computers via rs232 and run the code on each computer.
Find the COM port to which each computer is connected and enter it into the program.
Specify your nicknames and enjoy chatting.
You can also connect the rs232 to 2 different ports on the same pc and run 2 windows in the program.
You can install any virtual serial port driver if you do not have a physical rs232.