[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: OpenEdge socket message frame

  • Thread starter Thread starter Brian K. Maher
  • Start date Start date
Status
Not open for further replies.
B

Brian K. Maher

Guest
Hi Olli, I think that all they mean by “frame” is that you need to end up with a memptr that contains 4 bytes (holding the length, use a PUT-LONG for this) followed by the data. For example, “0017this is some data” (but where the 0017 would actually be encoded into a LONG using PUT-LONG so you are not limited to 9,999 bytes of data. You could use two memptr variables, one to hold the data only (to get the size) then the second one would have its size set to get-size(memptr1) + 4 then finally copy the data from memptr1 to memptr2 starting at position 5. Does that make sense? Brian

Continue reading...
 
Status
Not open for further replies.
Back
Top