I'm doing a C program to sent data to foreign program in a PC. My C
program is develop in Unix OS and the program run on Unix machine. C program
will sent data through a MUX port & link to Serial Port of PC. My program
will listen the status of the port, if the port is clear, C program will
dump data to the port. After sent data, C program will drop into listen mode
to receive data from PC.
What problem I face is the Unix cannot get any reply from the PC but I have
use an emulation software to test the reply of the foreign program in PC,
it's working.
Is this the correct protocol to use? Does nature of Unix that time sharing
process affect the communication?
Can someone help me on this?
Thanks
Low
--
Ji...@kingswayscotland.demon.co.uknospam
remove nospam to contact me
Prestige Atlantic <pre...@tm.net.my> wrote in article
<384b4...@news.tm.net.my>...
Big enough cross post for you...
Why not use Sockets. Network setup is easily defined and sockets
programming is not hard once you get a leg up.
--
Thanks
Ken Foskey
http://www.zipworld.com.au/~waratah/
Your description leaves something to be desired (it's a bit confusing).
But it sounds like Unix is sending data to a PC, then waiting for a
response.
Is the PC receiving the data? If it is, is it valid? Then is the PC
sending data?
Unix communication can handle anything you throw at it, but you had
better know how to program it. Programming under Unix requires you to
think a bit differently. Normally one forks a separate process to
handle the reading and writting. While the main process handles
everything else.
--
Linux Home Automation Neil Cherry nch...@home.net
http://members.home.net/ncherry (Text only)
http://meltingpot.fortunecity.com/lightsey/52 (Graphics GB)