August 14th, 2003, 10:47 AM
Socket Programming in C
I am challanged with an interesting problem. The description is given below:
On a linux box, I have to collect physical data on serial (RS232) port and send it to localhost (127.0.0.1) port. Once there, I have to recollect and translate this data to a usable format.
The problem is I am a novice in Socket programming. Can some shed some light (any thoughts are valuable) and give me a little guidence to accomplish this mission.
August 14th, 2003, 11:23 AM
You should be able to find example code in C for just about any Linux implementation you care to google for, just try different keywords.
BTW: Why not just process the data directly from the serial port? Why send it to a socket on the localhost?