Incompatibility of sockets in a WinDev and a C# program

July 18, 2012 at 15:46:55
Specs: Windows XP
I try to exchange data between a WinDev and a C# program using regular socket communication in both languages. I use TCP/IP protocol, socket 55455. The communication does work if both programs are written in Windev or in C#. But when I try to send a message from the Windev program to the C# program, it does not work. I documented the communication using WireShark and I (not being a TCP specialist) see two differences:
- Windev uses source port 1120 with bnetfile protocol, C# uses 1119 with bnetgame protocol
- the Windec communication consists of 8 records back and forth whereas the C# communication consists only of 5 records. Windev sends the data in the 5th record, C# does it in the 4th one.
Naive as I am I thought TCP/IP and sockets would work, disregarding the language they are programmed in. Can anybody please help me, how do I make these two different worlds to communicate with each other. If necessary I can send the source codes and the Wireshark protocols. Thank you!

See More: Incompatibility of sockets in a WinDev and a C# program

Report •

July 19, 2012 at 11:03:32
Sounds like the data isn't being serialized correctly. You might get away with it when you stick to the same environment (C# or WinDev in this instance), but when you branch out, you'll run into these problems.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question