PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → UDP Socket connection with a legacy system using WDMob
UDP Socket connection with a legacy system using WDMob
Started by Robert MENEGON, Aug., 28 2011 8:33 AM - No answer
Registered member
1 message
Posted on August, 28 2011 - 8:33 AM
I have a legacy Windows CE system that exchanges data (a data structure) with a legacy system using the UDP protocol. I am trying to do the same using WinDev Mobile. It is a typical RequestRespose scenario. A request structure is populated, this is sent to the server and a response structure is returned.
I have created the structure in WDM but ...
Q1. SocketWrite requires the data to be of Buffer type ... is there an elegant way of converting a the structure to a buffer type? For the moment I am ignoring the structure and building the buffer using the [[]] syntax.
Q2. SocketRead returns a character string ... how does one convert the string to a structure so that the elements can be examined?

thanks

Rob