PDA

View Full Version : C++ Network programming


Active X
12-08-2007, 11:02 AM
Hi to all dear developers reading this ,

I'm on to write a C++ program that sends/receives data simply over COM1 or 2 or MODEM .

I know much about C++ programming , but the network ... !

Can you help me ?

Will be really thankful to any help :thumbsup:

Dunna
12-12-2007, 08:02 PM
You need to use Sockets. Look up send, connet, accept, listen, or bind on the MSDN to get started. There is loads of info about it. If you have a specific networking problem post and I'll help. As for Com1, 2, and modem, you can transfer data over all 3 using a single Socket with the TCP/IP protocol.

Active X
12-13-2007, 11:17 AM
Great thanks Dunna , I found a lot about TCP/IP .

I'm also looking for a resource that helps me send my data directly to COM1 , Because I want to control a very simple robot with computer .

Know what do I mean ?

Thanks for your helps

Dunna
12-13-2007, 02:36 PM
I've actually seen it done before. At the time, I believe I had a special C++ compiler designed for that kind of thing that could send the compiled code directly to the robot in assembly language. This site has some example code, maybe this will help you: http://electrosofts.com/serial/

Active X
12-14-2007, 03:52 PM
Great thanks DUNNA !

muzammal
12-27-2007, 02:49 PM
You have to design new compiler for that purpose. You can take help from sites related to networking.

Active X
01-15-2008, 06:48 PM
Could someone write me the block of program that communicates with COM1 ?