PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → UDP Socket connection with a legacy system using WDMob
UDP Socket connection with a legacy system using WDMob
Iniciado por Robert MENEGON, 28,ago. 2011 08:33 - No hay respuesta
Miembro registrado
1 mensaje
Publicado el 28,agosto 2011 - 08:33
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